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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x508464]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00484f3c
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.00486d70
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 0x48504c
cmp dword [ebp - 0x1c], 5
jb 0x485064
jmp 0x485060
cmp dword [ebp - 0x10], 1
jne 0x485064
cmp dword [ebp - 0x1c], 4
ja 0x485060
jne 0x485064
cmp dword [ebp - 0x18], 0
jbe 0x485064
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4de8bc
call fcn.00435345
test eax, eax
jge 0x485085
mov byte [0x5105ec], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048e9d6
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x50e5b0], 0
push esi
jne 0x485440
call fcn.0048536b
test eax, eax
je 0x485483
mov eax, dword [0x50e5b0]
cmp eax, 1
jne 0x485461
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x485483
pop esi
ret
push eax
call dword [0x50e5b8]
test eax, eax
jne 0x4854cb
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 0x485487
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x50e5b0]
call dword [0x50e5b8]
mov edi, eax
test edi, edi
je 0x4854ae
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x4854ca
lea edi, [esi + 0xff0]
push esi
push dword [0x50e5b0]
call dword [0x50e5b4]
add esi, 0x10
cmp esi, edi
jb 0x4854b4
mov eax, esi
pop edi
pop esi
ret
jmp 0x48542d

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x48766a
call fcn.0048c060
mov dword [eax], esi
call fcn.0048c04d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00487f08
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x487646
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x487699
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0048c073
pop ecx
call fcn.0048c04d
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4876c0
test al, 1
je 0x4876c0
test byte [esp + 0xc], 2
je 0x4876c0
call fcn.0048c060
mov dword [eax], 5
call fcn.0048c04d
mov dword [eax], 0xd
jmp 0x487690
xor eax, eax
pop esi
ret
Function at 0x48c6c0
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 0x48c6fd
cmp dword [ebp + 0x14], edi
je 0x48c6fd
cmp ecx, edi
jne 0x48c704
call fcn.0048c04d
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00487f08
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x48c718
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x48c739
cmp ebx, 0xffffffff
je 0x48c728
push ebx
push edi
push ecx
call fcn.00486d70
add esp, 0xc
cmp esi, edi
je 0x48c6e5
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x48c6e5
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x48c755
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x48c75c
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x48c84d
test word [esi + 0xc], 0x10c
je 0x48c7b0
mov eax, dword [esi + 4]
test eax, eax
je 0x48c7b0
jl 0x48c8ae
cmp ebx, eax
mov edi, ebx
jb 0x48c781
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x48c855
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048648f
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 0x48c845
cmp ebx, dword [ebp - 0xc]
jb 0x48c81d
cmp dword [ebp - 0xc], 0
je 0x48c7da
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x48c7cf
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x48c7d6
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x48c7e5
mov eax, SysReAllocString
cmp ebx, eax
ja 0x48c7e5
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x48c881
push eax
push dword [ebp - 8]
push esi
call fcn.004998d1
pop ecx
push eax
call fcn.004997d4
add esp, 0xc
test eax, eax
je 0x48c8c0
cmp eax, 0xffffffff
je 0x48c8ae
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x48c845
push esi
call fcn.004990f3
cmp eax, 0xffffffff
pop ecx
je 0x48c8b2
cmp dword [ebp - 4], 0
je 0x48c881
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 0x48c764
mov eax, dword [ebp + 0x14]
jmp 0x48c6ff
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x48c86c
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00486d70
add esp, 0xc
call fcn.0048c04d
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x48c6f5
cmp dword [ebp + 0xc], 0xffffffff
je 0x48c897
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00486d70
add esp, 0xc
call fcn.0048c04d
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x48c6f5
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x48c6ff
or dword [esi + 0xc], 0x10
jmp 0x48c8b2
Function at 0x48e9d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x508464]
jne 0x48e9e0
repz ret
jmp fcn.0049e7c3

Function at 0x493a29
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 + 0x508c00]
je 0x493a44
inc edi
cmp edi, 0x17
jb 0x493a35
cmp edi, 0x17
jae 0x493bc4
push ebp
push 3
call fcn.004a12ba
cmp eax, 1
pop ecx
je 0x493b90
push 3
call fcn.004a12ba
test eax, eax
pop ecx
jne 0x493a78
cmp dword [0x508460], 1
je 0x493b90
cmp ebx, 0xfc
je 0x493bc3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x50ea18
push ebp
call fcn.0048c0d6
add esp, 0xc
test eax, eax
je 0x493aae
push esi
push esi
push esi
push esi
push esi
call fcn.00487e0c
add esp, 0x14
push 0x104
mov esi, 0x50ea31
push esi
push 0
mov byte [0x50eb35], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x493af2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0048c0d6
add esp, 0xc
test eax, eax
je 0x493af2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00487e0c
add esp, 0x14
push esi
call fcn.00487430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x493b37
push esi
call fcn.00487430
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x50ed2c
push 0x4dfc7c
sub ecx, eax
push ecx
push eax
call fcn.004a00f6
add esp, 0x14
test eax, eax
je 0x493b37
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00487e0c
add esp, 0x14
jmp 0x493b39
xor esi, esi
push 0x4dfc78
push ebx
push ebp
call fcn.004a0085
add esp, 0xc
test eax, eax
je 0x493b59
push esi
push esi
push esi
push esi
push esi
call fcn.00487e0c
add esp, 0x14
push dword [edi*8 + 0x508c04]
push ebx
push ebp
call fcn.004a0085
add esp, 0xc
test eax, eax
je 0x493b7b
push esi
push esi
push esi
push esi
push esi
call fcn.00487e0c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004a10fd
add esp, 0xc
jmp 0x493bc3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x493bc3
cmp ebp, 0xffffffff
je 0x493bc3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x508c04]
push dword [esi]
call fcn.00487430
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 0x4a10fd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0049223a
xor ebx, ebx
cmp dword [0x50f3a4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4a11d3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a12b3
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4a12b3
push eax
call fcn.004921cc
mov dword [esp], 0x4e2140
push edi
mov dword [0x50f3a4], eax
call esi
push eax
call fcn.004921cc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x50f3a8], eax
call esi
push eax
call fcn.004921cc
mov dword [0x50f3ac], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00492a5b
test eax, eax
pop ecx
pop ecx
je 0x4a11a1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00487e0c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4a11d3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004921cc
cmp eax, ebx
pop ecx
mov dword [0x50f3b4], eax
je 0x4a11d3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004921cc
pop ecx
mov dword [0x50f3b0], eax
mov eax, dword [0x50f3b0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4a1258
cmp dword [0x50f3b4], ecx
je 0x4a1258
push eax
call fcn.00492243
push dword [0x50f3b4]
mov esi, eax
call fcn.00492243
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4a1258
cmp edi, ebx
je 0x4a1258
call esi
cmp eax, ebx
je 0x4a1225
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a1225
test byte [ebp - 0x18], 1
jne 0x4a1258
lea eax, [ebp - 0x10]
push eax
call fcn.00492a92
test eax, eax
pop ecx
je 0x4a1240
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00487e0c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4a124f
or dword [ebp + 0x10], 0x200000
jmp 0x4a1293
or dword [ebp + 0x10], 0x40000
jmp 0x4a1293
mov eax, dword [0x50f3a8]
cmp eax, dword [ebp - 8]
je 0x4a1293
push eax
call fcn.00492243
cmp eax, ebx
pop ecx
je 0x4a1293
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4a1293
mov eax, dword [0x50f3ac]
cmp eax, dword [ebp - 8]
je 0x4a1293
push eax
call fcn.00492243
cmp eax, ebx
pop ecx
je 0x4a1293
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50f3a4]
call fcn.00492243
cmp eax, ebx
pop ecx
je 0x4a12b3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a12b5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ada1e
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x508464]
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 0x4ada5f
cmp byte [ebp - 0x194], 2
jne 0x4ada59
cmp byte [ebp - 0x193], 2
je 0x4ada62
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e9d6
leave
ret
Function at 0x4b5ec5
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 0x4b5ef4
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 0x4b6004
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x4b6024
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 0x4b605d
cmp eax, 2
jg 0x4b605d
push dword [esi + 0x130]
imul eax, eax, 3
push 1
add eax, 0x4e2e38
push 2
push eax
call fcn.0048d997
push dword [esi + 0x130]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0048d997
add esp, 0x20
xor eax, eax
ret

Function at 0x4b620c
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 0x4b627e
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4b6258
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4b627d
push ebx
push esi
call fcn.004babf3
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004b617e
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 0x4b7b1b
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 0x4b7b5b
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004b6114
add esp, 0xc
jmp 0x4b7bc6
push dword [esi + 0x470]
mov dword [ebp - 0x14], 1
call fcn.004be801
imul eax, eax, 0x3e8
push dword [esi + 0x474]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
call fcn.004be801
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 0x4b7bc6
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.004b6114
add esp, 0x10
pop edi
leave
ret
Function at 0x4b80ab
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x508464]
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 0x4b81f8
cmp dword [esi + 0x1d8], 0
push edi
jne 0x4b81f0
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 0x4b8129
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004babf3
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
jmp 0x4b8169
push edi
lea eax, [ebp + 0xc]
push 0
push eax
mov dword [ebp - 0x7c], edi
call fcn.00486d70
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 0x4b816c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004babf3
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
jmp 0x4b81e3
lea ebx, [esi + 0xb8]
lea edi, [esi + 0xe8]
lea esi, [ebp - 0x74]
call fcn.004b8072
test eax, eax
jne 0x4b819e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004babf3
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x4b81e0
mov esi, dword [ebp - 0x78]
push 0x2e
lea eax, [esi + 0x58]
push ebx
push eax
call fcn.004870c0
lea edi, [esi + 0x11c]
lea ebx, [esi + 0xec]
add esp, 0xc
lea esi, [ebp + 0xc]
call fcn.004b8072
test eax, eax
jne 0x4b81ed
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004babf3
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
call fcn.004b617e
add esp, 0x18
jmp 0x4b81f7
mov esi, dword [ebp - 0x78]
push esi
call fcn.004b8020
pop ecx
pop edi
mov ecx, dword [ebp + 0x8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e9d6
add ebp, 0x90
leave
ret

Function at 0x4b820f
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 0x4b8254
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004babf3
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004b6114
add esp, 0x14
jmp 0x4b8261
push str.TCP_NODELAY_set_n
push esi
call fcn.004b6114
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4b8264
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x508464]
xor eax, ebp
mov dword [ebp + 0xa0], eax
push esi
push edi
xor eax, eax
cmp dword [0x50f434], eax
push 2
mov dword [ebp - 0x78], 0x4020
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], 4
pop edi
jne 0x4b82d9
mov esi, 0x114
push esi
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], esi
mov dword [0x50f434], 1
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4b82d9
cmp dword [ebp - 0x70], 6
jb 0x4b82d9
mov dword [0x50f434], edi
cmp dword [0x50f434], edi
je 0x4b8321
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 0x4b830d
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x78]
jg 0x4b8321
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.0048e9d6
add ebp, 0xa4
leave
ret

Function at 0x4b834e
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 0x4b839e
mov eax, dword [edi + 0x44]
cmp eax, ebx
jne 0x4b8371
cmp dword [edi + 0x40], ebx
je 0x4b839e
cmp eax, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
jne 0x4b837e
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x34]
push 0x4b8338
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.004bedf4
add esp, 0xc
cmp dword [ebp - 4], ebx
jne 0x4b83a6
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 0x4b83af
mov dword [eax], esi
cmp dword [esi + 0x17c], ebx
mov edi, dword [esi + 0x154]
jne 0x4b839e
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4b839e
mov eax, edi
jmp 0x4b83a1
Function at 0x4b8c64
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 0x4b8cda
cmp word [ebx + 8], 2
jne 0x4b8cba
cmp word [ebx + 0xa], 4
jne 0x4b8cba
mov esi, dword [ebx + 0xc]
jmp 0x4b8cb4
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004b8bff
test eax, eax
mov dword [edi], eax
je 0x4b8cd5
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x4b8c98
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.004a00f6
add esp, 0x10
xor eax, eax
jmp 0x4b8d00
push 8
pop eax
jmp 0x4b8d00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x4b8d00
dec ecx
je 0x4b8cfb
dec ecx
je 0x4b8cf4
dec ecx
jmp 0x4b8d00
mov eax, 0x2afb
jmp 0x4b8d00
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x4b92fc
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x508464]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
cmp dword [0x50f438], 0
mov dword [ebp - 0x80], 0x4e348c
mov dword [ebp - 0x7c], 0x4b8ebb
mov dword [ebp - 0x78], str.getnameinfo
mov dword [ebp - 0x74], 0x4b9142
mov dword [ebp - 0x70], 0x4e3470
mov dword [ebp - 0x6c], fcn.004b8e82
jne 0x4b9462
push 0x104
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x4b9458
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.0048c0d6
push str.ws2_32
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.004a0085
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 0x4b93c5
push 0x4e348c
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x4b93c1
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x4b9417
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.0048c0d6
push str.wship6
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.004a0085
add esp, 0x18
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4b9455
push 0x4e348c
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x4b9413
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
je 0x4b9455
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 0x4b9434
inc esi
cmp esi, 3
jl 0x4b9419
jmp 0x4b943d
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
je 0x4b9455
xor eax, eax
mov ecx, dword [ebp + eax - 0x7c]
mov dword [eax + 0x509870], ecx
add eax, 8
cmp eax, 0x18
jl 0x4b9443
pop edi
pop esi
pop ebx
mov dword [0x50f438], 1
movzx eax, word [ebp + 0x1b8]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [eax*8 + 0x509870]
xor ecx, ebp
call fcn.0048e9d6
add ebp, 0x1b0
leave
ret 4
Function at 0x4c02a8
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4c02b5
jmp dword [eax*4 + 0x4c0310]
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 0x4c401a
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi]
cmp dword [eax + 4], 2
push edi
jne 0x4c403f
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4c402e
xor eax, eax
pop edi
ret
push dword [eax + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call ecx
jmp 0x4c4072
cmp dword [esi + 8], 0
jne 0x4c4060
push 0x4f4024
push dword [eax + 8]
call fcn.0048d150
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4c4060
or eax, 0xffffffff
pop edi
ret
push dword [esi + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0048c95c
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4c4092
mov eax, dword [esi + 8]
test eax, eax
je 0x4c408c
push eax
call fcn.0048c9e9
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