joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a030
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b83fd
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
jne 0x1002a078
xor al, al
jmp 0x1002a20b
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push ecx
push eax
mov dword [ebp - 0x278], 0
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1002a1f9
mov esi, dword [ebp + 8]
nop dword [eax]
nop dword [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x248]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002a0d0
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10007490
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10029bb0
add esp, 8
cmp dword [eax + 0x14], 7
mov edi, dword [eax + 0x10]
jbe 0x1002a111
mov eax, dword [eax]
cmp dword [esi + 0x14], 7
mov edx, esi
mov ecx, dword [esi + 0x10]
jbe 0x1002a11e
mov edx, dword [esi]
cmp ecx, edi
jne 0x1002a138
push ecx
push eax
push edx
call fcn.1002a230
add esp, 0xc
mov byte [ebp - 0x26d], 1
test eax, eax
je 0x1002a13f
mov byte [ebp - 0x26d], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x1002a179
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002a16f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002a226
push ecx
push edx
call fcn.1008c2e7
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x1002a1ca
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002a1c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002a226
push ecx
push edx
call fcn.1008c2e7
add esp, 8
cmp byte [ebp - 0x26d], 0
jne 0x1002a1ef
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x274]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1002a0b0
jmp 0x1002a1f9
mov dword [ebp - 0x278], 1
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x278]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
call fcn.100917bf
int3
Function at 0x1002a2c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not eax
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 4
jb 0x1002a337
push edi
mov edi, esi
shr edi, 2
nop word [eax + eax]
movzx ecx, byte [edx]
sub esi, 4
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9e10]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9e10]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9e10]
movzx ecx, byte [edx + 3]
add edx, 4
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9e10]
sub edi, 1
jne 0x1002a2e0
pop edi
test esi, esi
je 0x1002a35a
nop dword [eax + eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100b9e10]
sub esi, 1
jne 0x1002a340
not eax
pop esi
pop ebp
ret
Function at 0x1002df90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [esi], ecx
jle 0x1002e0e5
mov edx, dword [ebp + 8]
push ebx
push edi
nop dword [eax + eax]
mov edi, dword [edx]
add edi, ecx
mov al, byte [edi]
mov byte [ebp - 0x14], al
mov eax, dword [edx + 4]
mov al, byte [ecx + eax]
mov byte [ebp - 0xc], al
mov eax, dword [edx + 8]
mov al, byte [ecx + eax]
mov byte [ebp - 8], al
mov eax, dword [edx + 0xc]
mov al, byte [ecx + eax]
mov ecx, esi
mov byte [ebp - 4], al
push dword [ebp - 4]
push 9
call fcn.1002e5d0
push dword [ebp - 8]
mov ecx, esi
mov bl, al
push 0xd
call fcn.1002e5d0
push dword [ebp - 0xc]
mov ecx, esi
xor bl, al
push 0xb
call fcn.1002e5d0
push dword [ebp - 0x14]
mov ecx, esi
xor bl, al
push 0xe
call fcn.1002e5d0
push dword [ebp - 4]
xor bl, al
mov ecx, esi
push 0xd
mov byte [edi], bl
call fcn.1002e5d0
push dword [ebp - 8]
mov ecx, esi
mov bl, al
push 0xb
call fcn.1002e5d0
push dword [ebp - 0xc]
mov ecx, esi
xor bl, al
push 0xe
call fcn.1002e5d0
mov edi, dword [ebp - 0x14]
mov ecx, esi
push edi
push 9
xor bl, al
call fcn.1002e5d0
mov ecx, dword [ebp - 0x10]
xor bl, al
mov eax, dword [ebp + 8]
push dword [ebp - 4]
push 0xb
mov eax, dword [eax + 4]
mov byte [ecx + eax], bl
mov ecx, esi
call fcn.1002e5d0
push dword [ebp - 8]
mov ecx, esi
mov bl, al
push 0xe
call fcn.1002e5d0
push dword [ebp - 0xc]
mov ecx, esi
xor bl, al
push 9
call fcn.1002e5d0
push edi
push 0xd
mov ecx, esi
xor bl, al
call fcn.1002e5d0
xor bl, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x10]
push dword [ebp - 4]
push 0xe
mov byte [ecx + eax], bl
mov ecx, esi
call fcn.1002e5d0
push dword [ebp - 8]
mov ecx, esi
mov bl, al
push 9
call fcn.1002e5d0
push dword [ebp - 0xc]
mov ecx, esi
xor bl, al
push 0xd
call fcn.1002e5d0
push edi
push 0xb
mov ecx, esi
xor bl, al
call fcn.1002e5d0
mov edx, dword [ebp + 8]
xor bl, al
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov byte [ecx + eax], bl
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [esi]
jl 0x1002dfb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1002e470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0x10
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x1002e5c5
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
cmp edx, 8
jb 0x1002e5a8
lea eax, [ebx - 1]
add eax, edx
cmp edi, eax
ja 0x1002e4ae
lea eax, [edx - 1]
add eax, edi
cmp eax, ebx
jae 0x1002e5a8
lea eax, [edx - 1]
add eax, esi
cmp edi, eax
ja 0x1002e4c4
lea eax, [edx - 1]
add eax, edi
cmp eax, esi
jae 0x1002e5a8
cmp edx, 0x40
jb 0x1002e565
mov eax, edx
and eax, 0x3f
mov dword [ebp - 4], eax
mov eax, edx
sub eax, dword [ebp - 4]
mov edx, edi
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x10]
mov dword [ebp - 8], edx
mov ebx, esi
sub ebx, dword [ebp + 0xc]
mov edx, esi
sub edx, edi
mov dword [ebp - 0xc], edx
lea edx, [edi + 0x20]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [ebp - 8]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + esi]
lea edx, [edx + 0x40]
xorps xmm1, xmm0
movups xmmword [edx - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ebx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [ebp - 0xc]
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi + edx - 0x40]
mov edi, dword [ebp + 0x10]
xorps xmm1, xmm0
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [esi + ecx + 0x30]
add ecx, 0x40
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp ecx, dword [ebp - 0x10]
jb 0x1002e500
cmp dword [ebp - 4], 8
mov edx, dword [ebp + 0x14]
jb 0x1002e5a1
mov eax, dword [ebp + 0xc]
jmp 0x1002e56c
mov eax, dword [ebp + 0xc]
mov ebx, esi
sub ebx, eax
mov dword [ebp + 0x14], edx
add eax, ecx
and dword [ebp + 0x14], 0xfffffff8
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
nop dword [eax + eax]
movq xmm1, qword [ebx + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 8
xorps xmm1, xmm0
movq qword [edi + eax - 8], xmm1
cmp ecx, dword [ebp + 0x14]
jb 0x1002e580
mov edi, dword [ebp + 0x10]
cmp ecx, edx
jae 0x1002e5c3
mov ebx, dword [ebp + 0xc]
sub esi, ebx
lea eax, [ecx + ebx]
sub edi, ebx
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [edi + eax - 1], cl
sub edx, 1
jne 0x1002e5b1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10032960
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x11], 0x59313430
lea edx, [ecx + 1]
mov dword [ebp - 0xc], 0x4c556445
movups xmmword [esi], xmm0
mov word [ebp - 0x27], 0x3437
mov word [ebp - 0x1a], 0x7859
mov word [ebp - 0x24], 0x5544
mov dword [ebp - 0x17], 0x3741765a
mov dword [ebp - 0x21], 0x336b514c
mov word [ebp - 0x1d], 0x6e4e
mov byte [ebp - 0x18], 0x79
mov byte [ebp - 8], 0
mov byte [ebp - 0x25], 0x6d
mov word [ebp - 0x13], 0x3371
mov byte [ebp - 0x22], 0x53
mov byte [ebp - 0x28], 0x48
mov byte [ebp - 0x1b], 0x67
mov byte [ebp - 0xd], 0x4e
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100329e7
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
mov ecx, esi
call fcn.10003b70
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret

Function at 0x10032a10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xe], 0x30303030
lea edx, [ecx + 1]
mov word [ebp - 9], 0x30
movups xmmword [esi], xmm0
mov dword [ebp - 0x14], 0x30393933
mov word [ebp - 0x10], 0x3930
mov dword [ebp - 0x18], 0x31333731
mov byte [ebp - 0xa], 0x30
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032a66
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
mov ecx, esi
call fcn.10003b70
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
Function at 0x10034d30
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
cmp dword [esi + 0x14], 7
jbe 0x10034d43
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10034d9c
mov eax, 0x10624dd3
mov edi, 1
imul dword [ebp + 0xc]
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp ebx, edi
jle 0x10034d95
nop dword [eax]
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x10034d7a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10034d9c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, ebx
jl 0x10034d70
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
Function at 0x10039680
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push 0x1ad
push eax
mov dword [0x100dbe34], 0x927c0
call fcn.1002f1d0
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x100396bd
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x21c]
push str._s___s_
push eax
call fcn.1000e620
mov ecx, dword [ebp - 0x220]
add esp, 0x10
cmp ecx, 7
jbe 0x10039713
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10039709
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100398af
push ecx
push edx
call fcn.1008c2e7
add esp, 8
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.1008e0c0
lea eax, [ebp - 0x234]
push 0x1af
push eax
call fcn.1002f1d0
add esp, 0x14
cmp dword [eax + 0x14], 7
jbe 0x10039742
mov eax, dword [eax]
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x10039795
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003978b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100398b4
push ecx
push edx
call fcn.1008c2e7
add esp, 8
lea ecx, [ebp - 0x244]
mov dword [0x100dbe34], 0x92ba8
push ecx
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x288], 0x44
push ecx
push 0
push 0
xor eax, eax
mov dword [ebp - 0x25c], 1
cmp dword [ebp - 0x208], 7
xorps xmm0, xmm0
push 0
push 0
mov word [ebp - 0x246], ax
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x21c]
cmova eax, dword [ebp - 0x21c]
push 0
push 0
push eax
lea eax, [ebp - 0x204]
movlpd qword [ebp - 0x284], xmm0
push eax
movlpd qword [ebp - 0x27c], xmm0
movlpd qword [ebp - 0x274], xmm0
movlpd qword [ebp - 0x26c], xmm0
movlpd qword [ebp - 0x264], xmm0
movlpd qword [ebp - 0x256], xmm0
movlpd qword [ebp - 0x24e], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x240]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100dbe34], 0x92f90
call esi
push dword [ebp - 0x244]
call esi
mov ecx, dword [ebp - 0x208]
mov dword [0x100dbe34], 0x93378
cmp ecx, 7
jbe 0x100398a0
mov edx, dword [ebp - 0x21c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10039896
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100398b9
push ecx
push edx
call fcn.1008c2e7
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
call fcn.100917bf
call fcn.100917bf
call fcn.100917bf
int3
Function at 0x100428c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10042956
push esi
call fcn.10052be0
add esp, 4
test al, al
jne 0x10042956
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100428e5
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.10060550
add esp, 0xc
test eax, eax
je 0x10042919
sub eax, esi
push eax
push 0x2e
push esi
call fcn.10060550
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1004291b
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x1004294e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.10050fa0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x10042930
pop edi
movzx eax, bl
pop ebx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1004c890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f9], 0
je 0x1004c924
cmp dword [edi + 0x1a8], 0
je 0x1004c8e1
push esi
push 1
push edi
call fcn.1003d9c0
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1a8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.1003d9c0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x1004c8f5
sub ecx, 1
je 0x1004c8f5
sub ecx, 1
jne 0x1004c924
push dword [edi + 0x148]
lea eax, [edx*2 + 0x100bbe58]
push 1
add eax, edx
push 2
push eax
call fcn.1009caca
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1009caca
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret
Function at 0x1004ce60
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10c], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push esi
mov esi, 0x178
push edi
mov edx, dword [ecx + 0x154]
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x150]
mov eax, dword [eax + ecx]
mov dword [ebp - 0x108], eax
mov eax, 0x188
cmove esi, eax
mov eax, dword [ecx + 0x2a8]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x1004cf61
xor eax, eax
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x168]
cmp dword [eax + ecx], 0x1004caf0
jne 0x1004cf61
cmp dword [esi], 0
je 0x1004cef2
test edi, edi
je 0x1004cf61
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x108]
call fcn.1005c6d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1004cf61
test al, 1
je 0x1004cf61
mov ecx, dword [esi]
test ecx, ecx
jne 0x1004cf45
mov eax, dword [ebx + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x100dbe38]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x1004cf98
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1004cf61
add dword [esi + 8], eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x110]
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x1004cfe6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1004cfba
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x1004cfe6
mov ecx, dword [ebp - 0x10c]
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.100798a0
push eax
push str.Send_failure:__s
push ebx
call fcn.1004c930
add esp, 0x18
mov dword [ebx + 0x948], esi
mov eax, 0x37
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret

Function at 0x1004d430
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1a4], 0
je 0x1004d450
push eax
call fcn.100471c0
add esp, 4
test eax, eax
je 0x1004d471
mov al, 1
pop ebp
ret
mov eax, dword [eax + 0x150]
cmp eax, 0xffffffff
je 0x1004d471
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x1004d6d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.1008e0c0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1004d74d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.100798a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x1004d790
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.1004d2a0
add esp, 0x10
test al, al
jne 0x1004d799
call fcn.10091889
mov esi, dword [eax]
call fcn.10091889
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.100798a0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.1004c930
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret

Function at 0x1004df70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100dcfac]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x1004dfc2
push 3
push 2
push eax
push eax
push 6
call fcn.10079f10
add esp, 0x14
test al, al
je 0x1004dfb6
mov dword [0x100dcfac], 2
mov esp, ebp
pop ebp
ret
mov dword [0x100dcfac], 1
jmp 0x1004dfc7
cmp eax, 2
je 0x1004e007
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1004dfee
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x1004e007
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x1004f1f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a42d9

Function at 0x1004f470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x100bc128
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004f490
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x100bc144
push esi
mov dword [ebp - 8], ebx
call fcn.1009ff46
add esp, 8
test eax, eax
je 0x1004f4dc
test ebx, ebx
je 0x1004f4cc
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1004f505
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004f505
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x1004f5b0
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f521
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x100dbe38]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004f5a6
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1004f5a6
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f552
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f570
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1004f580
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004f59d
push 8
push 0
push ebx
call eax
jmp 0x1004f5a4
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x100dbe3c]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret