joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c90
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_gethostbyname
sub esp, 4
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jne 0x407cbc
mov eax, 0
jmp 0x407d12
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0041a59f
mov eax, dword [esp + 0x38]
mov word [eax], 2
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov eax, dword [esp + 0x38]
mov edx, dword [edx]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x34]
movzx eax, ax
mov dword [esp], eax
call sub.WS2_32.dll_htons
sub esp, 4
mov edx, dword [esp + 0x38]
mov word [edx + 2], ax
mov eax, 1
add esp, 0x2c
ret

Function at 0x407d16
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x64]
and eax, 1
test eax, eax
je 0x407d4b
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
call sub.WS2_32.dll_ioctlsocket
sub esp, 0xc
mov eax, dword [esp + 0x64]
and eax, 2
test eax, eax
je 0x407df9
mov byte [esp + 0x4b], 1
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], 1
lea edx, [esp + 0x4b]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 8
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call sub.WS2_32.dll_setsockopt
sub esp, 0x14
test eax, eax
jne 0x407df9
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x2bf20
mov dword [esp + 0x44], 0x1388
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
lea edx, [esp + 0x4b]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xc
lea edx, [esp + 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x98000004
mov dword [esp], eax
call sub.WS2_32.dll_WSAIoctl
sub esp, 0x24
mov eax, dword [esp + 0x64]
and eax, 4
test eax, eax
je 0x407e39
mov byte [esp + 0x3b], 1
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], 1
lea edx, [esp + 0x3b]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov dword [esp], eax
call sub.WS2_32.dll_setsockopt
sub esp, 0x14
nop
nop
add esp, 0x5c
ret
Function at 0x407e3e
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x15c
lea eax, [esp + 0x13c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x164]
mov dword [esp], eax
call fcn.00407c90
xor eax, 1
test al, al
je 0x407e7a
mov eax, 0
jmp 0x408089
mov dword [esp + 8], 9
mov dword [esp + 4], 0
lea eax, [esp + 0x133]
mov dword [esp], eax
call fcn.0041a59f
mov byte [esp + 0x133], 4
mov byte [esp + 0x134], 1
mov dword [esp + 8], 2
lea eax, [esp + 0x13c]
add eax, 2
mov dword [esp + 4], eax
lea eax, [esp + 0x133]
add eax, 2
mov dword [esp], eax
call fcn.0041a5e1
mov dword [esp + 8], 4
lea eax, [esp + 0x13c]
add eax, 4
mov dword [esp + 4], eax
lea eax, [esp + 0x133]
add eax, 4
mov dword [esp], eax
call fcn.0041a5e1
mov byte [esp + 0x13b], 0
mov eax, dword [esp + 0x160]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
lea edx, [esp + 0x133]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
cmp eax, 9
je 0x407f3d
mov eax, 0
jmp 0x408089
mov dword [esp + 8], 4
mov dword [esp + 4], 0
lea eax, [esp + 0x12f]
mov dword [esp], eax
call fcn.0041a59f
mov dword [esp + 0x28], 0
mov dword [esp + 0x14c], 0
jmp 0x407f8f
mov eax, dword [esp + 0x14c]
mov edx, dword [esp + eax*4 + 0x2c]
mov eax, dword [esp + 0x160]
cmp edx, eax
je 0x407f9e
add dword [esp + 0x14c], 1
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x14c]
ja 0x407f71
jmp 0x407f9f
nop
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x14c]
jne 0x407fd2
mov eax, dword [esp + 0x28]
cmp eax, 0x3f
ja 0x407fd2
mov edx, dword [esp + 0x160]
mov eax, dword [esp + 0x14c]
mov dword [esp + eax*4 + 0x2c], edx
mov eax, dword [esp + 0x28]
add eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x160]
lea edx, [eax + 1]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.WS2_32.dll_select
sub esp, 0x14
test eax, eax
jle 0x408084
mov eax, dword [esp + 0x160]
lea edx, [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x408084
mov eax, dword [esp + 0x160]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
lea edx, [esp + 0x12f]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
cmp eax, 4
jne 0x408084
movzx eax, byte [esp + 0x12f]
test al, al
jne 0x40807a
movzx eax, byte [esp + 0x130]
cmp al, 0x5a
jne 0x40807a
mov eax, 1
jmp 0x40807f
mov eax, 0
and eax, 1
jmp 0x408089
mov eax, 0
add esp, 0x15c
ret
Function at 0x408090
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x34c
mov eax, dword [esp + 0x354]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 0xa
mov dword [esp + 0x338], eax
cmp dword [esp + 0x338], 0x200
jle 0x4080c6
mov eax, 0
jmp 0x408327
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
lea eax, [esp + 0x138]
mov dword [esp], eax
call fcn.0041a59f
mov byte [esp + 0x138], 4
mov byte [esp + 0x139], 1
mov eax, dword [esp + 0x358]
movzx eax, ax
mov dword [esp], eax
call sub.WS2_32.dll_htons
sub esp, 4
mov word [esp + 0x136], ax
mov dword [esp + 8], 2
lea eax, [esp + 0x136]
mov dword [esp + 4], eax
lea eax, [esp + 0x138]
add eax, 2
mov dword [esp], eax
call fcn.0041a5e1
mov dword [esp + 0x130], 0x1000000
mov dword [esp + 8], 4
lea eax, [esp + 0x130]
mov dword [esp + 4], eax
lea eax, [esp + 0x138]
add eax, 4
mov dword [esp], eax
call fcn.0041a5e1
mov byte [esp + 0x140], 0
mov eax, dword [esp + 0x354]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov eax, dword [esp + 0x354]
mov dword [esp + 4], eax
lea eax, [esp + 0x138]
add eax, 9
mov dword [esp], eax
call fcn.0041a5e1
lea edx, [esp + 0x138]
mov eax, dword [esp + 0x338]
add eax, edx
mov byte [eax], 0
mov eax, dword [esp + 0x350]
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x338]
mov dword [esp + 8], edx
lea edx, [esp + 0x138]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
cmp eax, dword [esp + 0x338]
je 0x4081f5
mov eax, 0
jmp 0x408327
mov dword [esp + 8], 8
mov dword [esp + 4], 0
lea eax, [esp + 0x128]
mov dword [esp], eax
call fcn.0041a59f
mov dword [esp + 0x24], 0
mov dword [esp + 0x33c], 0
jmp 0x408247
mov eax, dword [esp + 0x33c]
mov edx, dword [esp + eax*4 + 0x28]
mov eax, dword [esp + 0x350]
cmp edx, eax
je 0x408256
add dword [esp + 0x33c], 1
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x33c]
ja 0x408229
jmp 0x408257
nop
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x33c]
jne 0x40828a
mov eax, dword [esp + 0x24]
cmp eax, 0x3f
ja 0x40828a
mov edx, dword [esp + 0x350]
mov eax, dword [esp + 0x33c]
mov dword [esp + eax*4 + 0x28], edx
mov eax, dword [esp + 0x24]
add eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x350]
lea edx, [eax + 1]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.WS2_32.dll_select
sub esp, 0x14
test eax, eax
jle 0x408322
mov eax, dword [esp + 0x350]
lea edx, [esp + 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x408322
mov eax, dword [esp + 0x350]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 8
lea edx, [esp + 0x128]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
cmp eax, 8
jne 0x408322
movzx eax, byte [esp + 0x129]
cmp al, 0x5a
sete al
jmp 0x408327
mov eax, 0
add esp, 0x34c
ret
Function at 0x40832e
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x42c
mov byte [esp + 0x41b], 5
mov byte [esp + 0x41c], 1
mov byte [esp + 0x41d], 0
movzx eax, byte [esp + 0x41c]
movzx eax, al
lea edx, [eax + 2]
mov eax, dword [esp + 0x430]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea edx, [esp + 0x41b]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
movzx edx, byte [esp + 0x41c]
movzx edx, dl
add edx, 2
cmp eax, edx
je 0x40839f
mov eax, 0
jmp 0x408599
mov dword [esp + 8], 2
mov dword [esp + 4], 0
lea eax, [esp + 0x419]
mov dword [esp], eax
call fcn.0041a59f
mov eax, dword [esp + 0x430]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
lea edx, [esp + 0x419]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
cmp eax, 2
je 0x4083fa
mov eax, 0
jmp 0x408599
movzx eax, byte [esp + 0x419]
cmp al, 5
jne 0x408412
movzx eax, byte [esp + 0x41a]
test al, al
je 0x40841c
mov eax, 0
jmp 0x408599
mov eax, dword [esp + 0x434]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov byte [esp + 0x41f], al
movzx eax, byte [esp + 0x41f]
add eax, 7
cmp eax, 0x200
jle 0x40844e
mov eax, 0
jmp 0x408599
mov byte [esp + 0x219], 5
mov byte [esp + 0x21a], 1
mov byte [esp + 0x21b], 0
mov byte [esp + 0x21c], 3
movzx eax, byte [esp + 0x41f]
mov byte [esp + 0x21d], al
movzx eax, byte [esp + 0x41f]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x434]
mov dword [esp + 4], eax
lea eax, [esp + 0x219]
add eax, 5
mov dword [esp], eax
call fcn.0041a5e1
mov eax, dword [esp + 0x438]
movzx eax, ax
mov dword [esp], eax
call sub.WS2_32.dll_htons
sub esp, 4
mov word [esp + 0x216], ax
movzx eax, byte [esp + 0x41f]
lea edx, [eax + 5]
lea eax, [esp + 0x219]
add edx, eax
mov dword [esp + 8], 2
lea eax, [esp + 0x216]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0041a5e1
movzx eax, byte [esp + 0x41f]
lea edx, [eax + 7]
mov eax, dword [esp + 0x430]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea edx, [esp + 0x219]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
movzx edx, byte [esp + 0x41f]
add edx, 7
cmp eax, edx
je 0x40853c
mov eax, 0
jmp 0x408599
movzx eax, byte [esp + 0x41f]
lea edx, [eax + 7]
mov eax, dword [esp + 0x430]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea edx, [esp + 0x16]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
test eax, eax
jns 0x408578
mov eax, 0
jmp 0x408599
movzx eax, byte [esp + 0x16]
cmp al, 5
jne 0x408591
movzx eax, byte [esp + 0x17]
test al, al
jne 0x408591
mov eax, 1
jmp 0x408596
mov eax, 0
and eax, 1
add esp, 0x42c
ret
Function at 0x4085a0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x23c
mov dword [esp], 0x41ec58
call fcn.0040b60e
mov edx, dword [esp + 0x248]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x244]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x248]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x244]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x200
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.00419fa8
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x240]
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x22c]
mov dword [esp + 8], edx
lea edx, [esp + 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
cmp eax, dword [esp + 0x22c]
je 0x40863a
mov eax, 0
jmp 0x4086ad
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.0041a59f
mov eax, dword [esp + 0x240]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x200
lea edx, [esp + 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
test eax, eax
jg 0x40868b
mov eax, 0
jmp 0x4086ad
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41ec80
mov dword [esp], 0
call fcn.00419b7e
cmp eax, 0xffffffff
setne al
add esp, 0x23c
ret
Function at 0x408b4b
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1ac
lea eax, [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sub.WS2_32.dll_WSAStartup
sub esp, 8
test eax, eax
je 0x408b78
mov dword [esp], 0
call sub.KERNEL32.DLL_ExitProcess
mov dword [esp], 0x42430c
call sub.KERNEL32.DLL_InitializeCriticalSection
sub esp, 4
nop
add esp, 0x1ac
ret

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

Disassembly:
sub esp, 0x4c
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x58], 0
jne 0x408bab
mov dword [esp + 0x5c], 0
jmp 0x408bc2
cmp dword [esp + 0x5c], 0xffffffff
jne 0x408bc2
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
add eax, 5
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp], 0x42430c
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov dword [esp + 4], 0x2d
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.00408dd9
test al, al
je 0x408d53
mov eax, dword [0x424324]
cmp dword [esp + 0x30], eax
jbe 0x408c42
mov eax, dword [0x424328]
test eax, eax
je 0x408c28
mov dword [esp], 0x424328
call fcn.0040b4bf
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [0x424328], eax
mov eax, dword [esp + 0x30]
mov dword [0x424324], eax
mov eax, dword [0x424328]
test eax, eax
je 0x408d53
cmp dword [esp + 0x5c], 0
jle 0x408cbd
mov eax, dword [0x41e7c8]
cmp dword [esp + 0x50], eax
jne 0x408c9c
mov eax, dword [esp + 0x5c]
mov edx, dword [0x424328]
add edx, 5
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x427280
mov dword [esp], 0x4272a0
call fcn.004057d1
jmp 0x408cbd
mov eax, dword [esp + 0x5c]
mov edx, dword [0x424328]
add edx, 5
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0041a5e1
mov eax, dword [0x424328]
mov edx, dword [esp + 0x5c]
add edx, 1
mov dword [eax], edx
mov eax, dword [0x424328]
lea edx, [eax + 4]
mov eax, dword [esp + 0x54]
mov byte [edx], al
jmp 0x408d46
mov edx, dword [esp + 0x34]
mov ecx, dword [0x424328]
mov eax, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0xffffffff
jne 0x408d36
call fcn.00407c84
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x2c], 0x2733
jne 0x408d52
mov dword [esp], 1
call fcn.0040b294
jmp 0x408d46
mov eax, dword [esp + 0x3c]
add dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x30]
jb 0x408cdb
jmp 0x408d53
nop
mov dword [esp], 0x42430c
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
cmp dword [esp + 0x38], 0
jne 0x408d70
mov eax, 0xffffffff
jmp 0x408d86
cmp dword [esp + 0x3c], 0xffffffff
je 0x408d80
mov eax, dword [esp + 0x38]
sub eax, 5
jmp 0x408d85
mov eax, 0xffffffff
nop
add esp, 0x4c
ret
Function at 0x408dd9
Capabilities:
Get socket status

Disassembly:
sub esp, 0x14c
mov dword [esp + 0x34], 0
mov dword [esp + 0x13c], 0
jmp 0x408e12
mov eax, dword [esp + 0x13c]
mov edx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0x150]
cmp edx, eax
je 0x408e21
add dword [esp + 0x13c], 1
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x13c]
ja 0x408df4
jmp 0x408e22
nop
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x13c]
jne 0x408e55
mov eax, dword [esp + 0x34]
cmp eax, 0x3f
ja 0x408e55
mov edx, dword [esp + 0x150]
mov eax, dword [esp + 0x13c]
mov dword [esp + eax*4 + 0x38], edx
mov eax, dword [esp + 0x34]
add eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
cmp dword [esp + 0x154], 0
jne 0x408eb0
mov eax, dword [esp + 0x150]
lea edx, [eax + 1]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.WS2_32.dll_select
sub esp, 0x14
mov dword [esp + 0x138], eax
jmp 0x408eec
mov eax, dword [esp + 0x150]
lea edx, [eax + 1]
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.WS2_32.dll_select
sub esp, 0x14
mov dword [esp + 0x138], eax
cmp dword [esp + 0x138], 0
jne 0x408f0c
cmp dword [esp + 0x154], 0
jne 0x408f05
jmp 0x408ddf
mov eax, 0
jmp 0x408f3c
cmp dword [esp + 0x138], 0
jns 0x408f1d
mov eax, 0
jmp 0x408f3c
mov eax, dword [esp + 0x150]
lea edx, [esp + 0x34]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
setne al
add esp, 0x14c
ret
Function at 0x408f43
Capabilities:
Get socket status

Disassembly:
sub esp, 0x14c
mov dword [esp + 0x13c], 3
mov dword [esp + 0x30], 0
mov dword [esp + 0x138], 0
jmp 0x408f87
mov eax, dword [esp + 0x138]
mov edx, dword [esp + eax*4 + 0x34]
mov eax, dword [esp + 0x150]
cmp edx, eax
je 0x408f96
add dword [esp + 0x138], 1
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x138]
ja 0x408f69
jmp 0x408f97
nop
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x138]
jne 0x408fcc
mov eax, dword [esp + 0x30]
cmp eax, 0x3f
ja 0x408fcc
mov eax, dword [esp + 0x150]
mov edx, eax
mov eax, dword [esp + 0x138]
mov dword [esp + eax*4 + 0x34], edx
mov eax, dword [esp + 0x30]
add eax, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x150]
lea edx, [eax + 1]
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.WS2_32.dll_select
sub esp, 0x14
mov dword [esp + 0x134], eax
cmp dword [esp + 0x134], 0
jne 0x40908b
cmp dword [esp + 0x13c], 0
jne 0x40907e
mov eax, dword [esp + 0x150]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x98
mov dword [esp], eax
call fcn.00408b8f
cmp eax, 0xffffffff
jne 0x40906e
lea eax, [esp + 0x150]
mov dword [esp], eax
call fcn.00408d8a
mov eax, 0
jmp 0x4090bb
mov dword [esp + 0x13c], 3
jmp 0x408f54
sub dword [esp + 0x13c], 1
jmp 0x408f54
cmp dword [esp + 0x134], 0
jns 0x40909c
mov eax, 0
jmp 0x4090bb
mov eax, dword [esp + 0x150]
lea edx, [esp + 0x30]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
setne al
add esp, 0x14c
ret

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

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x409110
test eax, eax
jne 0x409137
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00408d8a
mov eax, 0
jmp 0x40913b
call fcn.00407c84
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0x2733
jne 0x40912a
mov eax, 0
jmp 0x40913b
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00408d8a
nop
mov eax, dword [esp + 0x1c]
add esp, 0x2c
ret
Function at 0x40a8af
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x9c
mov dword [esp + 0x8c], 0
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.0041a59f
mov dword [esp + 0x48], 0x44
cmp dword [esp + 0xa8], 0
jne 0x40a908
mov dword [esp + 0x74], 1
mov word [esp + 0x78], 0
mov dword [esp + 0x8c], 0x8000000
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.0041a59f
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x38]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x48]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x40a9a7
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
nop
nop
add esp, 0x9c
ret

Function at 0x40a9af
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0xffffffff
je 0x40a9f9
mov eax, dword [esp + 0x1c]
and eax, 4
test eax, eax
jne 0x40a9e2
mov eax, dword [esp + 0x1c]
and eax, 2
test eax, eax
je 0x40a9f9
mov dword [esp + 4], pe_nt_image_headers32
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.DLL_SetFileAttributesA
sub esp, 8
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
test eax, eax
setne al
add esp, 0x2c
ret

Function at 0x40aa34
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0xffffffff
je 0x40aa63
mov eax, dword [esp + 0x1c]
and eax, 0x10
test eax, eax
jne 0x40aa63
mov eax, 1
jmp 0x40aa68
mov eax, 0
and eax, 1
add esp, 0x2c
ret

Function at 0x40aa6f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0xffffffff
je 0x40aa9e
mov eax, dword [esp + 0x1c]
and eax, 0x10
test eax, eax
je 0x40aa9e
mov eax, 1
jmp 0x40aaa3
mov eax, 0
and eax, 1
add esp, 0x2c
ret
Function at 0x40aaaa
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x24
mov dword [esp + 0x1c], 0
mov byte [esp + 0x1b], 0
mov dword [esp + 4], 0x41ecc5
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
jne 0x40aae5
mov eax, 0
jmp 0x40abff
mov dword [esp + 4], 0x41eccd
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x40abd6
mov dword [esp + 0x1c], 0x8000
jmp 0x40abbf
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov ebx, eax
test ebx, ebx
je 0x40abbb
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fread
mov esi, eax
test esi, esi
jg 0x40ab8c
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
and eax, 0x20
test eax, eax
jne 0x40ab7c
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
and eax, 0x10
test eax, eax
je 0x40ab7c
mov eax, 1
jmp 0x40ab81
mov eax, 0
mov byte [esp + 0x1b], al
and byte [esp + 0x1b], 1
jmp 0x40abb1
mov eax, esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fwrite
cmp eax, esi
jne 0x40abb0
jmp 0x40ab33
nop
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40abca
sar dword [esp + 0x1c], 1
cmp dword [esp + 0x1c], 0x7f
jg 0x40ab15
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
movzx eax, byte [esp + 0x1b]
xor eax, 1
test al, al
je 0x40abfa
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0040a9af
movzx eax, byte [esp + 0x1b]
add esp, 0x24
pop ebx
pop esi
ret

Function at 0x40acbe
Capabilities:
Create directory

Disassembly:
sub esp, 0x1c
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateDirectoryA
sub esp, 8
test eax, eax
setne al
add esp, 0x1c
ret