joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4660f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x46613b
call fcn.00467aba
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46613b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x466156
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00465cb2
test ebx, ebx
mov esi, eax
je 0x466154
test edi, edi
je 0x466154
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x468020
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5ca3a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x46805d
push 0x576238
push 4
push eax
call fcn.00486e52
push eax
call fcn.0045d6da
add esp, 0x10
jmp 0x46806f
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4680da
push edi
call fcn.00485227
mov edi, dword [eax]
call fcn.00485227
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0047d66a
add esp, 0x18
mov ebx, eax
call fcn.00485227
cmp dword [eax], 0
je 0x4680ba
call fcn.00485227
push dword [eax]
call fcn.00460c50
pop ecx
jmp 0x4680c1
call fcn.00485227
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4680da
cmp ebx, esi
jae 0x4680da
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4680dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047da50
leave
ret
Function at 0x469de2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x469e28
call fcn.00467aba
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x469e28
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x469e6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x469e54
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x469e54
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x469e68
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46b6d8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46b706
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b724
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046b642
jmp 0x46b724
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46b724
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0046b642
test edi, edi
mov eax, edi
jne 0x46b70e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5d84d4]
test ecx, ecx
je 0x46b7e7
jmp 0x46b6d7
ret 8

Function at 0x47da50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ca3a0]
jne 0x47da5a
repz ret
jmp fcn.0048a2dc
Function at 0x4852c9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x485306
cmp dword [ebp + 0x14], edi
je 0x485306
cmp ecx, edi
jne 0x48530d
call fcn.00485227
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0047dfa0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x485321
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x485342
cmp ebx, 0xffffffff
je 0x485331
push ebx
push edi
push ecx
call fcn.0047d440
add esp, 0xc
cmp esi, edi
je 0x4852ee
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4852ee
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x48535e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x485365
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x485456
test word [esi + 0xc], 0x10c
je 0x4853b9
mov eax, dword [esi + 4]
test eax, eax
je 0x4853b9
jl 0x4854b7
cmp ebx, eax
mov edi, ebx
jb 0x48538a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x48545e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047dd4b
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x48544e
cmp ebx, dword [ebp - 0xc]
jb 0x485426
cmp dword [ebp - 0xc], 0
je 0x4853e3
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4853d8
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4853df
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4853ee
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4853ee
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x48548a
push eax
push dword [ebp - 8]
push esi
call fcn.00493026
pop ecx
push eax
call fcn.004968e5
add esp, 0xc
test eax, eax
je 0x4854c9
cmp eax, 0xffffffff
je 0x4854b7
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x48544e
push esi
call fcn.00495bad
cmp eax, 0xffffffff
pop ecx
je 0x4854bb
cmp dword [ebp - 4], 0
je 0x48548a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x48536d
mov eax, dword [ebp + 0x14]
jmp 0x485308
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x485475
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0047d440
add esp, 0xc
call fcn.00485227
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4852fe
cmp dword [ebp + 0xc], 0xffffffff
je 0x4854a0
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0047d440
add esp, 0xc
call fcn.00485227
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4852fe
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x485308
or dword [esi + 0xc], 0x10
jmp 0x4854bb
Function at 0x4876d7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5ca5b0]
je 0x4876f2
inc edi
cmp edi, 0x17
jb 0x4876e3
cmp edi, 0x17
jae 0x487872
push ebp
push 3
call fcn.00498593
cmp eax, 1
pop ecx
je 0x48783e
push 3
call fcn.00498593
test eax, eax
pop ecx
jne 0x487726
cmp dword [0x5ca390], 1
je 0x48783e
cmp ebx, 0xfc
je 0x487871
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5d8a58
push ebp
call fcn.0048a450
add esp, 0xc
test eax, eax
je 0x48775c
push esi
push esi
push esi
push esi
push esi
call fcn.0047dea4
add esp, 0x14
push 0x104
mov esi, 0x5d8a71
push esi
push 0
mov byte [0x5d8b75], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4877a0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0048a450
add esp, 0xc
test eax, eax
je 0x4877a0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047dea4
add esp, 0x14
push esi
call fcn.0047dcc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4877e5
push esi
call fcn.0047dcc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5d8d6c
push 0x578c04
sub ecx, eax
push ecx
push eax
call fcn.00491135
add esp, 0x14
test eax, eax
je 0x4877e5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047dea4
add esp, 0x14
jmp 0x4877e7
xor esi, esi
push 0x578c00
push ebx
push ebp
call fcn.004910c4
add esp, 0xc
test eax, eax
je 0x487807
push esi
push esi
push esi
push esi
push esi
call fcn.0047dea4
add esp, 0x14
push dword [edi*8 + 0x5ca5b4]
push ebx
push ebp
call fcn.004910c4
add esp, 0xc
test eax, eax
je 0x487829
push esi
push esi
push esi
push esi
push esi
call fcn.0047dea4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004983d6
add esp, 0xc
jmp 0x487871
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x487871
cmp ebp, 0xffffffff
je 0x487871
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5ca5b4]
push dword [esi]
call fcn.0047dcc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4983d6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00488287
xor ebx, ebx
cmp dword [0x5d9564], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4984ac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x49858c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x57a074
push edi
call esi
cmp eax, ebx
je 0x49858c
push eax
call fcn.00488219
mov dword [esp], 0x57a064
push edi
mov dword [0x5d9564], eax
call esi
push eax
call fcn.00488219
mov dword [esp], 0x57a050
push edi
mov dword [0x5d9568], eax
call esi
push eax
call fcn.00488219
mov dword [0x5d956c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00486bdf
test eax, eax
pop ecx
pop ecx
je 0x49847a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047dea4
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4984ac
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00488219
cmp eax, ebx
pop ecx
mov dword [0x5d9574], eax
je 0x4984ac
push 0x57a01c
push edi
call esi
push eax
call fcn.00488219
pop ecx
mov dword [0x5d9570], eax
mov eax, dword [0x5d9570]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x498531
cmp dword [0x5d9574], ecx
je 0x498531
push eax
call fcn.00488290
push dword [0x5d9574]
mov esi, eax
call fcn.00488290
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x498531
cmp edi, ebx
je 0x498531
call esi
cmp eax, ebx
je 0x4984fe
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4984fe
test byte [ebp - 0x18], 1
jne 0x498531
lea eax, [ebp - 0x10]
push eax
call fcn.00486c16
test eax, eax
pop ecx
je 0x498519
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047dea4
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x498528
or dword [ebp + 0x10], 0x200000
jmp 0x49856c
or dword [ebp + 0x10], 0x40000
jmp 0x49856c
mov eax, dword [0x5d9568]
cmp eax, dword [ebp - 8]
je 0x49856c
push eax
call fcn.00488290
cmp eax, ebx
pop ecx
je 0x49856c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49856c
mov eax, dword [0x5d956c]
cmp eax, dword [ebp - 8]
je 0x49856c
push eax
call fcn.00488290
cmp eax, ebx
pop ecx
je 0x49856c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5d9564]
call fcn.00488290
cmp eax, ebx
pop ecx
je 0x49858c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49858e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49f6f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5ca3a0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49f742
mov eax, dword [esp]
cmp al, 2
jne 0x49f73c
shr eax, 8
cmp al, 2
jne 0x49f73c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0047da50
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0047da50
add esp, 0x194
ret

Function at 0x4a0a40
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4a0a62
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4a0a56
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4a0a92
cmp dword [esi + 8], 0
jne 0x4a0a85
mov ecx, dword [eax + 8]
push 0x574480
push ecx
call fcn.00483c88
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4a0a85
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00485565
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4a0ab4
mov eax, dword [esi + 8]
test eax, eax
je 0x4a0aae
push eax
call fcn.004833e1
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x4ac1e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4ac212
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4ac360
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4ac37b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4ac3af
cmp eax, 2
jg 0x4ac3af
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x57c288]
push 2
push edx
call fcn.004835bc
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.004835bc
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4ac73d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4ac714
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004b09d0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.004ac540
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4acf10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5ca3a0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1bc], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x4ad04b
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4acf8c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004b09d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004ac540
add esp, 0x18
jmp 0x4ad054
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4acfcc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004b09d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004ac540
add esp, 0x18
jmp 0x4ad054
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.004aced0
test eax, eax
jne 0x4ad00a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004b09d0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.004ac540
add esp, 0x18
jmp 0x4ad054
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.004aced0
test eax, eax
jne 0x4ad04b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004b09d0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.004ac540
add esp, 0x18
jmp 0x4ad054
push ebp
call fcn.004ace70
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047da50
add esp, 0x10c
ret

Function at 0x4ad070
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4ad0b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004b09d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004ac4b0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004ac4b0
add esp, 8
pop esi
pop ecx
ret

Function at 0x4ad0d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4ad119
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x4ad131
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x4ad140
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x4ad1a4
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x4ad1a4
mov ecx, dword [esp + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x4ad16c
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x4ad18e
push eax
call fcn.004a20d0
add esp, 4
test eax, eax
jne 0x4ad1a0
or eax, 0xffffffff
pop esi
ret
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4ad185
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x4aef00
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4aefa4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x4aef75
cmp word [ecx + 0xa], 4
jne 0x4aef75
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4aef75
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.004aee90
mov dword [esi], eax
test eax, eax
je 0x4aef98
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4aef50
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.00491135
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4aefb4.11001
jmp dword [eax*4 + 0x4aefd8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x4af810
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x5ca3a0]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x5d9814], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4af270
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4af560
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.004af220
je 0x4af882
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x5cb894]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0047da50
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4af97d
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0048a450
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004910c4
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4af8fd
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4af944
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.0048a450
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004910c4
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4af979
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x4af9ad
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x4af9ad
inc edi
cmp edi, 3
jl 0x4af946
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x5cb894], edx
mov dword [0x5cb89c], eax
mov dword [fcn.004af220], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x5cb894]
xor ecx, esp
mov dword [0x5d9814], 1
call fcn.0047da50
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x4af979

Function at 0x4aff20
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0048652f
add esp, 0x18
test eax, eax
je 0x4aff43
cmp eax, 0xffffffff
jne 0x4aff45
xor eax, eax
ret

Function at 0x4b32d0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4b32df
jmp dword [ecx*4 + 0x4b3334]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
Function at 0x4bbf20
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x57c1d0
push ecx
call fcn.004ac4b0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004bb100
test eax, eax
jne 0x4bbf50
mov eax, esi
jmp fcn.004bb590
ret