joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48778d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x50c464]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004876cc
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00489500
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4877dc
cmp dword [ebp - 0x1c], 5
jb 0x4877f4
jmp 0x4877f0
cmp dword [ebp - 0x10], 1
jne 0x4877f4
cmp dword [ebp - 0x1c], 4
ja 0x4877f0
jne 0x4877f4
cmp dword [ebp - 0x18], 0
jbe 0x4877f4
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4e18bc
call fcn.00433c91
test eax, eax
jge 0x487815
mov byte [0x514c24], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00491166
add ebp, 0x78
leave
ret

Function at 0x487c5d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x512bf0], 0
push esi
jne 0x487bd0
call fcn.00487afb
test eax, eax
je 0x487c13
mov eax, dword [0x512bf0]
cmp eax, 1
jne 0x487bf1
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x487c13
pop esi
ret
push eax
call dword [0x512bf8]
test eax, eax
jne 0x487c5b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x487c17
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x512bf0]
call dword [0x512bf8]
mov edi, eax
test edi, edi
je 0x487c3e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x487c5a
lea edi, [esi + 0xff0]
push esi
push dword [0x512bf0]
call dword [0x512bf4]
add esi, 0x10
cmp esi, edi
jb 0x487c44
mov eax, esi
pop edi
pop esi
ret
jmp 0x487bbd

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x489dfa
call fcn.0048e7f0
mov dword [eax], esi
call fcn.0048e7dd
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0048a698
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x489dd6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x489e29
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0048e803
pop ecx
call fcn.0048e7dd
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x489e50
test al, 1
je 0x489e50
test byte [esp + 0xc], 2
je 0x489e50
call fcn.0048e7f0
mov dword [eax], 5
call fcn.0048e7dd
mov dword [eax], 0xd
jmp 0x489e20
xor eax, eax
pop esi
ret
Function at 0x48ee50
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 0x48ee8d
cmp dword [ebp + 0x14], edi
je 0x48ee8d
cmp ecx, edi
jne 0x48ee94
call fcn.0048e7dd
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048a698
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x48eea8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x48eec9
cmp ebx, 0xffffffff
je 0x48eeb8
push ebx
push edi
push ecx
call fcn.00489500
add esp, 0xc
cmp esi, edi
je 0x48ee75
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x48ee75
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x48eee5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x48eeec
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x48efdd
test word [esi + 0xc], 0x10c
je 0x48ef40
mov eax, dword [esi + 4]
test eax, eax
je 0x48ef40
jl 0x48f03e
cmp ebx, eax
mov edi, ebx
jb 0x48ef11
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x48efe5
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00488c1f
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 0x48efd5
cmp ebx, dword [ebp - 0xc]
jb 0x48efad
cmp dword [ebp - 0xc], 0
je 0x48ef6a
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x48ef5f
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x48ef66
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x48ef75
mov eax, SysReAllocString
cmp ebx, eax
ja 0x48ef75
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x48f011
push eax
push dword [ebp - 8]
push esi
call fcn.0049c061
pop ecx
push eax
call fcn.0049bf64
add esp, 0xc
test eax, eax
je 0x48f050
cmp eax, 0xffffffff
je 0x48f03e
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x48efd5
push esi
call fcn.0049b883
cmp eax, 0xffffffff
pop ecx
je 0x48f042
cmp dword [ebp - 4], 0
je 0x48f011
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 0x48eef4
mov eax, dword [ebp + 0x14]
jmp 0x48ee8f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x48effc
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00489500
add esp, 0xc
call fcn.0048e7dd
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x48ee85
cmp dword [ebp + 0xc], 0xffffffff
je 0x48f027
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00489500
add esp, 0xc
call fcn.0048e7dd
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x48ee85
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x48ee8f
or dword [esi + 0xc], 0x10
jmp 0x48f042
Function at 0x491166
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50c464]
jne 0x491170
repz ret
jmp fcn.004a0f53

Function at 0x4961b9
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 + 0x50cc00]
je 0x4961d4
inc edi
cmp edi, 0x17
jb 0x4961c5
cmp edi, 0x17
jae 0x496354
push ebp
push 3
call fcn.004a3a47
cmp eax, 1
pop ecx
je 0x496320
push 3
call fcn.004a3a47
test eax, eax
pop ecx
jne 0x496208
cmp dword [0x50c460], 1
je 0x496320
cmp ebx, 0xfc
je 0x496353
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x513058
push ebp
call fcn.0048e866
add esp, 0xc
test eax, eax
je 0x49623e
push esi
push esi
push esi
push esi
push esi
call fcn.0048a59c
add esp, 0x14
push 0x104
mov esi, 0x513071
push esi
push 0
mov byte [0x513175], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x496282
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0048e866
add esp, 0xc
test eax, eax
je 0x496282
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048a59c
add esp, 0x14
push esi
call fcn.00489bc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4962c7
push esi
call fcn.00489bc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x51336c
push 0x4e2c7c
sub ecx, eax
push ecx
push eax
call fcn.004a2886
add esp, 0x14
test eax, eax
je 0x4962c7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048a59c
add esp, 0x14
jmp 0x4962c9
xor esi, esi
push 0x4e2c78
push ebx
push ebp
call fcn.004a2815
add esp, 0xc
test eax, eax
je 0x4962e9
push esi
push esi
push esi
push esi
push esi
call fcn.0048a59c
add esp, 0x14
push dword [edi*8 + 0x50cc04]
push ebx
push ebp
call fcn.004a2815
add esp, 0xc
test eax, eax
je 0x49630b
push esi
push esi
push esi
push esi
push esi
call fcn.0048a59c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004a388a
add esp, 0xc
jmp 0x496353
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x496353
cmp ebp, 0xffffffff
je 0x496353
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x50cc04]
push dword [esi]
call fcn.00489bc0
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 0x4a388a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004949ca
xor ebx, ebx
cmp dword [0x5139e4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4a3960
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a3a40
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4a3a40
push eax
call fcn.0049495c
mov dword [esp], 0x4e5140
push edi
mov dword [0x5139e4], eax
call esi
push eax
call fcn.0049495c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5139e8], eax
call esi
push eax
call fcn.0049495c
mov dword [0x5139ec], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004951eb
test eax, eax
pop ecx
pop ecx
je 0x4a392e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048a59c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4a3960
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0049495c
cmp eax, ebx
pop ecx
mov dword [0x5139f4], eax
je 0x4a3960
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049495c
pop ecx
mov dword [0x5139f0], eax
mov eax, dword [0x5139f0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4a39e5
cmp dword [0x5139f4], ecx
je 0x4a39e5
push eax
call fcn.004949d3
push dword [0x5139f4]
mov esi, eax
call fcn.004949d3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4a39e5
cmp edi, ebx
je 0x4a39e5
call esi
cmp eax, ebx
je 0x4a39b2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a39b2
test byte [ebp - 0x18], 1
jne 0x4a39e5
lea eax, [ebp - 0x10]
push eax
call fcn.00495222
test eax, eax
pop ecx
je 0x4a39cd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048a59c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4a39dc
or dword [ebp + 0x10], 0x200000
jmp 0x4a3a20
or dword [ebp + 0x10], 0x40000
jmp 0x4a3a20
mov eax, dword [0x5139e8]
cmp eax, dword [ebp - 8]
je 0x4a3a20
push eax
call fcn.004949d3
cmp eax, ebx
pop ecx
je 0x4a3a20
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4a3a20
mov eax, dword [0x5139ec]
cmp eax, dword [ebp - 8]
je 0x4a3a20
push eax
call fcn.004949d3
cmp eax, ebx
pop ecx
je 0x4a3a20
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5139e4]
call fcn.004949d3
cmp eax, ebx
pop ecx
je 0x4a3a40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a3a42
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b01ae
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x50c464]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4b01ef
cmp byte [ebp - 0x194], 2
jne 0x4b01e9
cmp byte [ebp - 0x193], 2
je 0x4b01f2
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491166
leave
ret
Function at 0x4b8664
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4b8693
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 0x4b87a3
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x4b87c3
push dword [esi + 0x134]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4b87fc
cmp eax, 2
jg 0x4b87fc
push dword [esi + 0x130]
imul eax, eax, 3
push 1
add eax, 0x4e5e38
push 2
push eax
call fcn.00490127
push dword [esi + 0x130]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00490127
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4b8a1d
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4b89f7
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4b8a1c
push ebx
push esi
call fcn.004bd392
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004b891d
mov eax, dword [esi]
mov dword [eax + 0x860c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x4ba2ba
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
xor eax, eax
xor edi, edi
cmp dword [esi + 0x46c], edi
push 4
setne al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4ba2fa
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004b88b3
add esp, 0xc
jmp 0x4ba365
push dword [esi + 0x470]
mov dword [ebp - 0x14], 1
call fcn.004c0fa0
imul eax, eax, 0x3e8
push dword [esi + 0x474]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
call fcn.004c0fa0
imul eax, eax, 0x3e8
pop ecx
pop ecx
push edi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x98000004
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4ba365
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004b88b3
add esp, 0x10
pop edi
leave
ret
Function at 0x4ba84a
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x50c464]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
je 0x4ba997
cmp dword [esi + 0x1d8], 0
push edi
jne 0x4ba98f
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4ba8c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004bd392
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
jmp 0x4ba908
push edi
lea eax, [ebp + 0xc]
push 0
push eax
mov dword [ebp - 0x7c], edi
call fcn.00489500
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4ba90b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004bd392
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
jmp 0x4ba982
lea ebx, [esi + 0xb8]
lea edi, [esi + 0xe8]
lea esi, [ebp - 0x74]
call fcn.004ba811
test eax, eax
jne 0x4ba93d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004bd392
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x4ba97f
mov esi, dword [ebp - 0x78]
push 0x2e
lea eax, [esi + 0x58]
push ebx
push eax
call fcn.00489850
lea edi, [esi + 0x11c]
lea ebx, [esi + 0xec]
add esp, 0xc
lea esi, [ebp + 0xc]
call fcn.004ba811
test eax, eax
jne 0x4ba98c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004bd392
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
call fcn.004b891d
add esp, 0x18
jmp 0x4ba996
mov esi, dword [ebp - 0x78]
push esi
call fcn.004ba7bf
pop ecx
pop edi
mov ecx, dword [ebp + 0x8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00491166
add ebp, 0x90
leave
ret

Function at 0x4ba9ae
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4ba9f3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004bd392
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004b88b3
add esp, 0x14
jmp 0x4baa00
push str.TCP_NODELAY_set_n
push esi
call fcn.004b88b3
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4baa03
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x50c464]
xor eax, ebp
mov dword [ebp + 0xa0], eax
push esi
push edi
xor eax, eax
cmp dword [0x513a74], eax
push 2
mov dword [ebp - 0x78], 0x4020
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], 4
pop edi
jne 0x4baa78
mov esi, 0x114
push esi
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00489500
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], esi
mov dword [0x513a74], 1
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4baa78
cmp dword [ebp - 0x70], 6
jb 0x4baa78
mov dword [0x513a74], edi
cmp dword [0x513a74], edi
je 0x4baac0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
mov edi, 0x1001
push edi
mov esi, 0xffff
push esi
push dword [ebp + 0xac]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4baaac
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x78]
jg 0x4baac0
push 4
lea eax, [ebp - 0x78]
push eax
push edi
push esi
push dword [ebp + 0xac]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp + 0xa0]
pop edi
xor ecx, ebp
pop esi
call fcn.00491166
add ebp, 0xa4
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x5d0]
xor ebx, ebx
cmp esi, ebx
je 0x4bab3d
mov eax, dword [edi + 0x44]
cmp eax, ebx
jne 0x4bab10
cmp dword [edi + 0x40], ebx
je 0x4bab3d
cmp eax, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
jne 0x4bab1d
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x34]
push 0x4baad7
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.004c1593
add esp, 0xc
cmp dword [ebp - 4], ebx
jne 0x4bab45
mov dword [edi + 0x5d0], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4bab4e
mov dword [eax], esi
cmp dword [esi + 0x17c], ebx
mov edi, dword [esi + 0x154]
jne 0x4bab3d
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4bab3d
mov eax, edi
jmp 0x4bab40
Function at 0x4bb403
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4bb479
cmp word [ebx + 8], 2
jne 0x4bb459
cmp word [ebx + 0xa], 4
jne 0x4bb459
mov esi, dword [ebx + 0xc]
jmp 0x4bb453
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004bb39e
test eax, eax
mov dword [edi], eax
je 0x4bb474
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x4bb437
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.004a2886
add esp, 0x10
xor eax, eax
jmp 0x4bb49f
push 8
pop eax
jmp 0x4bb49f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x4bb49f
dec ecx
je 0x4bb49a
dec ecx
je 0x4bb493
dec ecx
jmp 0x4bb49f
mov eax, 0x2afb
jmp 0x4bb49f
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x4bba9b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x50c464]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
cmp dword [0x513a78], 0
mov dword [ebp - 0x80], 0x4e648c
mov dword [ebp - 0x7c], 0x4bb65a
mov dword [ebp - 0x78], str.getnameinfo
mov dword [ebp - 0x74], 0x4bb8e1
mov dword [ebp - 0x70], 0x4e6470
mov dword [ebp - 0x6c], fcn.004bb621
jne 0x4bbc01
push 0x104
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x4bbbf7
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push eax
mov esi, 0x10c
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.0048e866
push str.ws2_32
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.004a2815
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
add esp, 0x18
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4bbb64
push 0x4e648c
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x4bbb60
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x4bbbb6
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.0048e866
push str.wship6
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.004a2815
add esp, 0x18
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4bbbf4
push 0x4e648c
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x4bbbb2
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
je 0x4bbbf4
xor esi, esi
push dword [ebp + esi*8 - 0x80]
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [ebp + esi*8 - 0x7c], eax
je 0x4bbbd3
inc esi
cmp esi, 3
jl 0x4bbbb8
jmp 0x4bbbdc
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
je 0x4bbbf4
xor eax, eax
mov ecx, dword [ebp + eax - 0x7c]
mov dword [eax + 0x50d870], ecx
add eax, 8
cmp eax, 0x18
jl 0x4bbbe2
pop edi
pop esi
pop ebx
mov dword [0x513a78], 1
movzx eax, word [ebp + 0x1b8]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [eax*8 + 0x50d870]
xor ecx, ebp
call fcn.00491166
add ebp, 0x1b0
leave
ret 4
Function at 0x4c2a47
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4c2a54
jmp dword [eax*4 + 0x4c2aaf]
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
mov al, byte [esp + 4]
ret

Function at 0x4c67ad
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi]
cmp dword [eax + 4], 2
push edi
jne 0x4c67d2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4c67c1
xor eax, eax
pop edi
ret
push dword [eax + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call ecx
jmp 0x4c6805
cmp dword [esi + 8], 0
jne 0x4c67f3
push 0x4f7034
push dword [eax + 8]
call fcn.0048f8e0
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4c67f3
or eax, 0xffffffff
pop edi
ret
push dword [esi + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0048f0ec
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4c6825
mov eax, dword [esi + 8]
test eax, eax
je 0x4c681f
push eax
call fcn.0048f179
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
ret