joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e5f9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push ebx
push esi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004182c0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00419500
lea ecx, [ebp - 0x34]
call fcn.00419660
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.00418e50
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 7
lea ecx, [ebp - 0x34]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
push 0xffffffffffffffff
cmp word [eax], 0x22
jne 0x45e662
xor eax, eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x3c]
add eax, 2
push eax
jmp 0x45e66b
push dword [ebp - 0x3c]
xor eax, eax
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041a2c0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00419620
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.0041a570
lea eax, [ebp - 0x1c]
push eax
push 3
push eax
call fcn.0042bcc0
call fcn.0045e49a
push 0x38
mov esi, eax
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00449f04
add esp, 0x18
mov dword [ebp - 0x88], 0x3c
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x84], 0x40
cmovae eax, dword [ebp - 0x4c]
cmp dword [ebp - 8], 8
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x4131f4
mov dword [ebp - 0x6c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
jne 0x45e730
push 0xffffffffffffffff
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x45e730
mov ecx, dword [ebp + 0xc]
mov bl, 1
test ecx, ecx
je 0x45e730
mov eax, dword [ebp - 4]
mov dword [ecx], eax
test esi, esi
je 0x45e73b
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041a570
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.0041a570
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ea55
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push esi
push eax
call fcn.00449f04
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0048edcc
add esp, 0x18
cmp word [ebp - 0x21e], 0x3a
jne 0x45eab0
cmp word [ebp - 0x21c], 0x5c
jne 0x45eab0
xor eax, eax
mov word [ebp - 0x21a], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop esi
test eax, eax
je 0x45eb38
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.004908ae
movss xmm1, dword [0x404980]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm1
mulss xmm0, xmm1
movss dword [eax], xmm0
call fcn.004908ae
movss xmm1, dword [0x404980]
mov eax, dword [ebp + 0x10]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm1
mulss xmm0, xmm1
movss dword [eax], xmm0
mov al, 1
jmp 0x45eb40
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x45f0cd
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push dword [ebp + 0xc]
push ebx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x400
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x45f143
push 0x104
lea eax, [ebp - 0x244]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x45f136
lea eax, [ebp - 0x244]
push eax
call fcn.00416d20
pop ecx
push eax
lea eax, [ebp - 0x244]
mov ecx, esi
push eax
call fcn.0041c040
jmp 0x45f13c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x10], ebx
je 0x45f1bf
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x5c
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0042f7f0
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, 0xffffffe8
cmp esi, eax
je 0x45f175
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.0041a2c0
push 0x4130f4
lea ecx, [ebp - 0x3c]
call fcn.00419550
push 0x404854
lea ecx, [ebp - 0x24]
call fcn.00419550
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
call fcn.0042be10
add esp, 0x10
lea ecx, [ebp - 0x24]
push ebx
push 1
call fcn.0041a570
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0041a570
lea ecx, [ebp - 0xc]
call fcn.0041a710
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f1c8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push edi
push 0
push 2
or edi, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov esi, eax
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.00449f04
add esp, 0xc
mov dword [ebp - 0x22c], 0x22c
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x45f238
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x224], ebx
je 0x45f231
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45f216
jmp 0x45f237
mov edi, dword [ebp - 0x214]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x460248
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x460256
mov eax, dword [eax]
push 1
push 0
push eax
push 0x404618
push 0x4035b8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret

Function at 0x460dce
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push 5
push dword [ebp + 8]
jmp 0x460de5
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x460dd9
pop esi
pop ebp
ret
Function at 0x46461c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x464657
test al, 8
jne 0x464657
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x464657
or byte [esi + 0xc], 4
mov cl, byte [esi + 0xc]
test eax, 0x21000000
jne 0x464657
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x464674
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.00464684
jmp 0x46467f
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x468085
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4b0780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ebx
cmp dword [eax + 0x10], ebx
jne 0x4680b0
xor al, al
jmp 0x4681c3
cmp dword [eax + 0x14], 8
jb 0x4680b8
mov eax, dword [eax]
movzx eax, word [eax]
push esi
push edi
mov esi, 0x404fec
lea edi, [ebp - 0x14]
push ebx
push ebx
push 3
movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x4c], esi
cmp esi, 0xffffffff
jne 0x4680f1
xor al, al
jmp 0x4681c1
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
push 0x28
lea eax, [ebp - 0x48]
mov dword [ebp - 0x20], ebx
push eax
push 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push eax
push 0x2d1400
push esi
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46812a
mov edi, dword [ebp - 0x2c]
jmp 0x4681b2
call fcn.0041fd20
cmp eax, 2
jg 0x4681a2
push 4
pop ebx
push 2
push 0x93
push 0x404f70
lea ecx, [ebp - 0x104]
call fcn.0041fdc0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x404ffc
push dword [ebp - 0x50]
lea eax, [ebp - 0x14]
push 0x405028
push eax
lea eax, [esi + 8]
push 0x405038
push eax
call fcn.0041bbb0
pop ecx
pop ecx
push eax
call fcn.00420630
pop ecx
pop ecx
push eax
call fcn.0041bbb0
pop ecx
pop ecx
push eax
call fcn.0041d380
pop ecx
pop ecx
push eax
call fcn.0041bbb0
pop ecx
pop ecx
mov ecx, eax
call fcn.00420840
mov esi, dword [ebp - 0x4c]
test bl, 4
je 0x4681b2
lea ecx, [ebp - 0x104]
call fcn.0041fe10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, 7
sete al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00490c9e
mov esp, ebp
pop ebp
ret
Function at 0x46a0c4
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.0048e140
mov eax, dword [0x4b0780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
mov esi, edi
push esi
lea eax, [ebp - 0x104]
push 0x40592c
push eax
call fcn.0048e060
add esp, 0xc
lea eax, [ebp - 0x104]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37c8], eax
cmp eax, 0xffffffff
je 0x46a2ad
mov dword [ebp - 0x37c4], edi
xor eax, eax
lea edi, [ebp - 0x37c0]
stosd dword es:[edi], eax
push 0x2710
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x33cc]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x37c0], edi
mov dword [ebp - 0x37bc], edi
call fcn.00449f04
add esp, 0xc
lea eax, [ebp - 0x37c4]
push edi
mov edi, dword [ebp - 0x37c8]
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push 0xc
lea eax, [ebp - 0x37c0]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46a2a4
lea eax, [ebp - 0xcbc]
push eax
push 0
push dword [ebp - 0x33c0]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046a2ca
lea eax, [ebp - 0x8d4]
push eax
push 0
push dword [ebp - 0x33bc]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046a2ca
lea eax, [ebp - 0x37b4]
push eax
push 0
push dword [ebp - 0x33b8]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046a2ca
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x33b4]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046a2ca
add esp, 0x40
cmp byte [0x4b4460], 0
jne 0x46a26a
movsx eax, byte [ebp - 0x4ec]
push eax
call fcn.00492a86
pop ecx
test eax, eax
jne 0x46a224
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.00492a86
pop ecx
test eax, eax
je 0x46a26a
xor eax, eax
cmp byte [ebp - 0x4ec], 0x20
jne 0x46a23a
inc eax
cmp byte [ebp + eax - 0x4ec], 0x20
je 0x46a22f
lea ecx, [ebp - 0x4ec]
mov edx, 0x4b4460
add ecx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x46a249
xor ecx, ecx
mov al, byte [ebp + ecx - 0x8d4]
mov byte [ecx + 0x4b4860], al
inc ecx
test al, al
jne 0x46a255
xor ebx, ebx
inc ebx
push 0x2710
lea eax, [ebp - 0x33cc]
push 0
push eax
call fcn.00449f04
add esp, 0xc
lea eax, [ebp - 0x37c4]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push ecx
push ecx
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc esi
cmp esi, 0x10
jl 0x46a0e4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490c9e
mov esp, ebp
pop ebp
ret

Function at 0x46a415
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.00449f04
and dword [esi + 0x44], 0
add esp, 0xc
and dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
pop esi
ret
Function at 0x46b091
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46b125
push esi
xor ecx, ecx
mov eax, 0x19000
push 2
pop edx
mov dword [ebp - 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048e105
mov esi, eax
mov eax, dword [ebp - 4]
add eax, eax
push eax
push ebx
push esi
call fcn.00449f04
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
push esi
sbb al, al
lea ebx, [eax + 1]
call fcn.00416d20
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.0041aec0
push esi
call fcn.0048e100
pop ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46b29c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x46b2cf
xor al, al
jmp 0x46b303
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46b2f8
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46bc38
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b0780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b4ed8]
mov ecx, eax
inc eax
mov dword [0x4b4ed8], eax
test ecx, ecx
je 0x46bc63
xor eax, eax
jmp 0x46bce9
push ebx
mov ebx, dword [ebp + 8]
mov dword [fcn.0048ea32], 0x48ea32
mov dword [fcn.0048e028], 0x48e028
mov dword [fcn.00493cb7], 0x493cb7
mov dword [fcn.0049415b], 0x49415b
mov dword [fcn.0049420e], 0x49420e
test bl, 2
je 0x46bccd
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x46bcd6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x46bcc5
shr eax, 8
cmp al, 2
je 0x46bccd
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x46bcd6
call fcn.0041e6d0
test eax, eax
je 0x46bcdb
push 2
pop eax
jmp 0x46bce8
mov dword [0x4b4edc], ebx
call fcn.00476eba
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490c9e
mov esp, ebp
pop ebp
ret
Function at 0x46e79f
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x4b02f0]
mov esi, dword [ebp + 8]
mov edi, eax
pop ecx
pop ecx
push 8
mov dword [esi + 0x3bc], edi
pop ebx
test edi, edi
je 0x46e85f
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esi + 0x3b4], ecx
mov dword [esi + 0x3b8], ecx
mov dword [esi + 0x3b0], ecx
push eax
push dword [ebp + 0xc]
mov dword [esi + 0x3ac], eax
or dword [edi + 4], 0xffffffff
mov dword [edi], ecx
lea ecx, [edi + 0x10]
push ecx
call fcn.0046e87f
add esp, 0x10
test eax, eax
je 0x46e85f
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x46e81a
push eax
call dword [0x4b02e4]
and dword [esi + 0x3a8], 0
pop ecx
push dword [ebp + 0xc]
call dword [0x4b02ec]
mov dword [esi + 0x3a8], eax
pop ecx
test eax, eax
je 0x46e85f
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x46e85f
lea eax, [edi + 0x10]
push eax
push 0x46e712
call fcn.0047892c
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
jne 0x46e87a
call fcn.00492c47
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.0046e64c
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
inc eax
jmp 0x46e875

Function at 0x475fcc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov esi, eax
and dword [ebx], 0
cmp esi, 0xffffffff
jne 0x47603c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x476014
xor esi, esi
mov dword [ebx], 0x51
jmp 0x47603c
push eax
push edi
call fcn.0046b308
push eax
push 0x407a28
push dword [edi]
call fcn.00475d09
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [eax + 0x856c], ecx
mov dword [ebx], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x4761c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x4761ed
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
jmp 0x476225
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x476223
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
push 2
add eax, 0x407a10
push eax
call fcn.004913e6
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004913e6
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x47637f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov ecx, dword [eax + 0x530]
cmp ecx, edi
je 0x4763d3
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4763d3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4763ac
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
mov esi, dword [eax + 0x130]
jne 0x4763d3
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
cmove esi, edi
mov eax, esi
jmp 0x4763d5
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x476526
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4b0780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x476646
lea eax, [ebp - 0x108]
mov esi, 0x80
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x476598
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0046b308
push eax
push esi
push 0x407bb8
push ebx
call fcn.00475d09
add esp, 0x18
jmp 0x47664d
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], esi
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4765d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0046b308
push eax
push esi
push 0x407b30
jmp 0x47658a
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004769a8
add esp, 0xc
test eax, eax
jne 0x47660a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0046b308
push eax
push esi
push 0x407be0
jmp 0x47658a
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004769a8
add esp, 0xc
test eax, eax
jne 0x476646
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0046b308
push eax
push esi
push 0x407c0c
jmp 0x47658a
push edi
call fcn.004763d9
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490c9e
mov esp, ebp
pop ebp
ret
Function at 0x476d86
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x476dce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0046b308
push eax
push 0x407c4c
push esi
call fcn.00475d9f
add esp, 0x14
jmp 0x476ddb
push 0x407c6c
push esi
call fcn.00475d9f
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x4776aa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4776bb
jmp dword [eax*4 + 0x47772e]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret