joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493ab0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [esi + 0x200]
cmp eax, 1
push edi
je 0x493ac6
cmp eax, 3
jne 0x493b61
cmp dword [esi + 0x214], 0
jne 0x493ae2
mov eax, dword [esi + 0x20c]
test eax, eax
je 0x493b3f
mov eax, dword [eax + 4]
mov dword [esi + 0x214], eax
mov ecx, dword [esi + 0x20c]
mov eax, dword [esi + 0x214]
mov edx, dword [ecx + 4]
push 0
push eax
sub edx, eax
lea eax, [edx + ecx + 8]
mov ecx, dword [esi + 0x204]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x493b4e
test eax, eax
je 0x493cad
sub dword [esi + 0x214], eax
jne 0x493ac6
mov edx, dword [esi + 0x20c]
mov edi, dword [edx]
mov eax, edx
push eax
call fcn.004a4810
test edi, edi
mov dword [esi + 0x20c], edi
jne 0x493ac6
mov dword [esi + 0x210], edi
jmp 0x493ac6
mov dword [esi + 0x208], 1
xor eax, eax
pop edi
pop ecx
ret
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
jne 0x493c96
cmp dword [esi + 0x200], 2
push ebx
push ebp
jne 0x493c4e
lea ebx, [esi + 0x224]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x240]
mov edi, dword [esi + 0x218]
mov ebp, dword [esi + 0x210]
push ebx
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x493c0c
mov edi, edi
mov edx, dword [esi + 0x20c]
mov eax, dword [esi + 0x204]
push 0
sub edx, edi
push edi
add edx, ebp
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x493c58
test ebp, ebp
je 0x493c80
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub edi, ebp
push ebx
mov dword [esi + 0x218], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x240]
mov edi, dword [esi + 0x218]
mov ebp, dword [esi + 0x210]
push ebx
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x493ba0
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x493c22
pop ebp
pop ebx
mov dword [esi + 0x208], eax
xor eax, eax
pop edi
pop ecx
ret
cmp eax, 2
jne 0x493c3d
push str.451_Transfer_aborted:_read_error._r_n
mov ecx, esi
call fcn.00492d00
add esp, 4
pop ebp
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test eax, eax
jne 0x493c4e
mov edx, dword [esi + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x493c4e
call edi
push eax
push str.426_send_failed__d_r_n
mov ecx, esi
call fcn.00492d00
add esp, 8
pop ebp
pop ebx
xor eax, eax
pop edi
pop ecx
ret
push str.426_Connection_closed__transfer_aborted._r_n
mov ecx, esi
call fcn.00492d00
add esp, 4
pop ebp
pop ebx
xor eax, eax
pop edi
pop ecx
ret
call edi
push eax
push str.500_send_failed__d._r_n
mov ecx, esi
call fcn.00492d00
add esp, 8
xor eax, eax
pop edi
pop ecx
ret
push str.426_Connection_closed__transfer_aborted._r_n
mov ecx, esi
call fcn.00492d00
add esp, 4
xor eax, eax
pop edi
pop ecx
ret
Function at 0x493d10
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0xa4
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
push edi
mov esi, ecx
call fcn.00493420
mov edi, dword [esi + 0xb4]
neg edi
sbb edi, edi
push 6
and edi, 0x15
push 1
add edi, 2
push edi
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x180], eax
je 0x493ebf
push 4
lea ecx, [esp + 0xc]
push ecx
push 1
push 0xffff
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [0x59912c]
mov eax, dword [edx + 0x10]
mov ecx, dword [esi + 0x180]
push 0x28
push 0x402
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
xor eax, eax
cmp edi, 0x17
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jne 0x493dca
push 0x1c
lea edx, [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x180]
push edx
mov word [esp + 0x14], di
push eax
jmp 0x493ddf
mov edx, dword [esi + 0x180]
push 0x10
lea ecx, [esp + 0x10]
push ecx
mov word [esp + 0x14], 2
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x493eac
mov eax, dword [esi + 0x180]
push closesocket
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x493e99
mov eax, dword [esi + 0x180]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x14], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x493e86
mov ax, word [esp + 0x28]
cmp ax, 0x17
je 0x493e3e
cmp ax, 2
jne 0x493e74
movzx eax, word [esp + 0x2a]
test eax, eax
je 0x493e74
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push ecx
push str.229_Entering_Extended_Passive_Mode___d__r_n
mov ecx, esi
call fcn.00492d00
mov dword [esi + 0x178], 2
mov dword [esi + 0x17c], 1
jmp 0x493ed7
call fcn.00493420
movsx edx, word [esp + 0x28]
push edx
push str.500_Failed_to_enter_passive_mode__invalid_family__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__getsockname_failed__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__socket_listen__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__bind_failed__d_r_n
jmp 0x493ed0
call fcn.00493420
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__socket_failed__d_r_n
mov ecx, esi
call fcn.00492d00
mov ecx, dword [esp + 0xb0]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.00549930
add esp, 0xa4
ret
Function at 0x496320
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
jmp 0x496330
mov eax, dword [esi + 0x160]
cmp eax, dword [esi + 0x164]
jne 0x496389
push 0x10000
call fcn.004a47b0
cmp dword [esi + 0x158], 0
je 0x49635b
mov ecx, dword [esi + 0x15c]
mov dword [ecx], eax
jmp 0x496361
mov dword [esi + 0x158], eax
mov dword [eax], 0
add dword [esi + 0x168], 1
lea edx, [eax + 0x10000]
mov dword [esi + 0x15c], eax
add eax, 4
mov dword [esi + 0x164], edx
mov dword [esi + 0x160], eax
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x164]
mov edx, dword [esi + 8]
push 0
sub ecx, eax
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x496511
test eax, eax
je 0x49652a
mov ebx, dword [esi + 0x160]
xor edi, edi
mov dword [esp + 0xc], eax
add eax, ebx
mov dword [esi + 0x160], eax
lea ebx, [ebx]
cmp byte [ebx], 0xa
jne 0x4964c9
test edi, edi
mov byte [ebx], 0
je 0x4963f2
push esi
mov ecx, edi
call fcn.00495b90
add ebx, 1
mov edi, ebx
jmp 0x4964cc
mov eax, dword [esi + 0x168]
cmp eax, 1
jne 0x496416
mov ecx, dword [esi + 0x15c]
add ecx, 4
push esi
call fcn.00495b90
add ebx, 1
mov edi, ebx
jmp 0x4964cc
add eax, 0xffffffff
imul eax, eax, 0xfffc
sub eax, dword [esi + 0x15c]
lea ecx, [eax + ebx - 3]
push ecx
call fcn.004a47b0
mov ebp, dword [esi + 0x158]
cmp ebp, dword [esi + 0x15c]
mov dword [esp + 0x14], eax
mov edi, eax
je 0x496474
mov edx, dword [ebp]
push 0xfffc
lea eax, [ebp + 4]
push eax
push edi
mov dword [esp + 0x1c], edx
call fcn.00549cb0
add esp, 0xc
push ebp
add edi, 0xfffc
call fcn.004a4810
mov ebp, dword [esp + 0x10]
cmp ebp, dword [esi + 0x15c]
jne 0x496443
mov eax, dword [esi + 0x15c]
mov ecx, ebx
sub ecx, eax
sub ecx, 4
push ecx
add eax, 4
push eax
push edi
call fcn.00549cb0
sub edi, dword [esi + 0x15c]
add esp, 0xc
mov byte [edi + ebx - 4], 0
mov edx, dword [esi + 0x15c]
mov edi, dword [esp + 0x14]
push esi
mov ecx, edi
mov dword [esi + 0x168], 1
mov dword [esi + 0x158], edx
call fcn.00495b90
push edi
call fcn.004a4810
add ebx, 1
mov edi, ebx
jmp 0x4964cc
add ebx, 1
sub dword [esp + 0xc], 1
jne 0x4963d0
test edi, edi
je 0x496330
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x15c]
sub eax, edi
push eax
add ecx, 4
push edi
push ecx
call fcn.00549940
mov edx, dword [esi + 0x15c]
sub edx, edi
add edx, 4
add esp, 0xc
add dword [esi + 0x160], edx
jmp 0x496330
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0x2733
sete cl
pop edi
pop ebp
pop ebx
mov eax, ecx
add esp, 0xc
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4973b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push 1
push eax
xor ebp, ebp
call fcn.004a9cd0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x497454
push esi
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.004aba70
test eax, eax
je 0x49744c
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x497437
push edi
call fcn.004a47f0
mov esi, eax
test esi, esi
je 0x49744b
push ebp
lea edx, [esp + 0x20]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49741e
cmp dword [esp + 0x1c], edi
jne 0x49741e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edi
push esi
call dword [esp + 0x30]
mov ebp, eax
push esi
call fcn.004a4810
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
push 0
push 0
call dword [esp + 0x30]
mov ebp, eax
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0x10
Function at 0x4a20f0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x20c
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x208], eax
cmp byte [0x58b6a5], 0
je 0x4a2198
mov eax, esi
call fcn.004a2000
test eax, eax
je 0x4a2198
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [0x598e10]
test eax, eax
je 0x4a2198
lea ecx, [esi - 0x10]
shl eax, 0x10
cmp ecx, 0x80
ja case.0x4a214c.19
movzx ecx, byte [ecx + 0x4a21bc]
jmp dword [ecx*4 + 0x4a21b0]
or eax, 0x2000000
jmp case.0x4a214c.19
or eax, 0x1000000
push 0x104
lea edx, [esp + 4]
push edx
push eax
call dword [0x598de0]
test eax, eax
je 0x4a2198
lea eax, [esp]
push eax
push edi
call fcn.00523fd0
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00549930
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.00549930
add esp, 0x20c
ret

Function at 0x4a2730
Capabilities:
Terminate process

Disassembly:
push ecx
push edi
push str.EVERYTHING_TASKBAR_NOTIFICATION
call fcn.004ac210
mov edi, eax
test edi, edi
je 0x4a27b5
lea eax, [esp + 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a27b5
mov ecx, dword [esp + 4]
push esi
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0
push 0x10
push edi
mov esi, eax
call dword [0x598e1c]
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a27ad
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4a27ad
push str.Timed_out_while_waiting_for_Everything.exe_to_close
push str._main_close_existing_process
push 0x1bb
push str.._srcmain.c
call fcn.0048f230
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ecx
ret
Function at 0x4a3a90
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x34c
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x348], eax
mov eax, dword [0x599188]
push ebp
push esi
push edi
xor edi, edi
cmp dword [eax + 0xc], edi
mov dword [esp + 0x10], edi
je 0x4a3ac3
mov eax, dword [eax + 0xc]
cmp byte [eax], 0
je 0x4a3ac3
mov esi, eax
jmp 0x4a3ad2
mov eax, dword [0x598ed4]
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
mov esi, ecx
lea edx, [esp + 0x24]
push edx
call fcn.00523650
lea eax, [esp + 0x24]
push str.EVERYTHING_TASKBAR_NOTIFICATION
push eax
call fcn.00524440
add esp, 8
test esi, esi
je 0x4a3b1b
push 0x56d704
lea ecx, [esp + 0x28]
push ecx
call fcn.005237f0
push esi
lea edx, [esp + 0x28]
push edx
call fcn.005237f0
push 0x552044
lea eax, [esp + 0x28]
push eax
call fcn.005237f0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004ac210
lea edx, [esp + 0x24]
push edx
mov ebp, eax
call fcn.00527550
test ebp, ebp
je 0x4a3c83
push ebx
lea eax, [esp + 0x138]
push eax
call fcn.00523650
lea ecx, [esp + 0x248]
push ecx
call fcn.00523650
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x13c]
push edx
call fcn.00523fd0
lea eax, [esp + 0x248]
push eax
call fcn.004ad9b0
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x10]
push edx
call dword [0x58ef40]
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x248]
lea edi, [ecx + eax + 6]
push edi
call fcn.004a47b0
mov edx, dword [esp + 0x360]
mov esi, eax
mov dword [esi], edx
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x140]
add eax, 1
push eax
push ecx
lea ebx, [esi + 4]
push ebx
call fcn.00549cb0
mov edx, dword [esp + 0x254]
mov eax, dword [esp + 0x25c]
mov ecx, dword [esp + 0x144]
add edx, 1
push edx
push eax
lea edx, [ebx + ecx + 1]
push edx
call fcn.00549cb0
push str.send_cl_n
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], esi
call fcn.0048f080
add esp, 0x1c
lea eax, [esp + 0x24]
push eax
push 0x7530
push 9
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x4a
push ebp
call dword [0x598e30]
test eax, eax
pop ebx
je 0x4a3c46
push str.send_message_ok_n
push 0xff00ff00
mov edi, 1
call fcn.0048f0a0
add esp, 8
jmp 0x4a3c63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.send_message_failed__u_n
push 0xffff0000
call fcn.0048f0a0
mov edi, dword [esp + 0x1c]
add esp, 0xc
push esi
call fcn.004a4810
lea edx, [esp + 0x244]
push edx
call fcn.00527550
lea eax, [esp + 0x134]
push eax
call fcn.00527550
mov ecx, dword [esp + 0x354]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00549930
add esp, 0x34c
ret 4
Function at 0x4a3d20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x32c
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
mov dword [esp + 0x10], edi
call esi
sub eax, edi
cmp eax, 0x7530
ja 0x4a3e79
mov ebx, dword [0x598ce0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
lea eax, [esp + 0x124]
push eax
call fcn.00523650
lea ecx, [esp + 0x14]
push ecx
call fcn.00523650
lea edx, [esp + 0x14]
push str.EVERYTHING_MUTEX
push edx
call fcn.00524440
add esp, 8
call fcn.004a3a20
test eax, eax
je 0x4a3dad
call fcn.004a3a20
push eax
lea eax, [esp + 0x18]
push 0x56d734
push eax
call fcn.005245e0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x128]
push edx
call fcn.005277c0
lea eax, [esp + 0x14]
push eax
call fcn.00527550
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x599180]
cmp eax, edi
je 0x4a3de6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x599180], edi
mov eax, dword [esp + 0x12c]
cmp word [eax], di
je 0x4a3e0c
cmp word [eax], 0x5c
jne 0x4a3dfd
mov word [eax], 0x5f
add eax, 2
cmp word [eax], di
jne 0x4a3df2
mov eax, dword [esp + 0x12c]
push eax
push edi
push edi
call ebx
mov dword [0x599180], eax
call ebp
lea ecx, [esp + 0x124]
push ecx
mov esi, eax
call fcn.00527550
cmp esi, 0xb7
jne 0x4a3e8b
push str.mutex_exists_n
call fcn.0048f080
mov edx, dword [0x599188]
add esp, 4
test dword [edx + 4], 0x800000
jne 0x4a3e7d
mov eax, dword [esp + 0x340]
push eax
call fcn.004a3a90
test eax, eax
jne 0x4a3e79
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x7530
jbe 0x4a3d63
xor eax, eax
jmp 0x4a3e9c
mov dword [0x599184], 1
xor eax, eax
jmp 0x4a3e9c
mov ecx, dword [0x599188]
mov eax, dword [ecx + 8]
shr eax, 0x17
not eax
and eax, 1
mov ecx, dword [esp + 0x338]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00549930
add esp, 0x32c
ret 4

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
mov edi, dword [esp + 0x18]
jle 0x4a48e8
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.WS2_32.dll_send]
lea ebx, [ebx]
push 0
push esi
push edi
push ebx
call ebp
cmp eax, 0xffffffff
je 0x4a48f4
test eax, eax
je 0x4a48f4
sub esi, eax
add edi, eax
test esi, esi
jg 0x4a48d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x4a4980
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
push ebx
push ebp
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0x14], ecx
mov eax, dword [0x58b6e4]
test eax, eax
mov dword [esp + 0x10], ecx
je 0x4a49a8
cmp ecx, eax
jg 0x4a4a5e
push 0x10000
call fcn.004a47b0
cmp dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
je 0x4a49c1
mov dword [esi], eax
jmp 0x4a49c5
mov dword [esp + 0x18], eax
lea esi, [eax + 4]
lea ebx, [eax + 0x10000]
cmp esi, ebx
mov dword [esp + 0x20], eax
mov dword [eax], 0
jae 0x4a4a39
lea esp, [esp]
mov ecx, dword [esp + 0x28]
push 2
mov eax, ebx
sub eax, esi
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4a4a6a
test eax, eax
mov edi, esi
je 0x4a4ad9
add eax, esi
cmp esi, eax
jae 0x4a4a14
cmp byte [edi], 0xa
je 0x4a4a88
add edi, 1
cmp edi, eax
jb 0x4a4a08
mov edx, dword [esp + 0x28]
push 0
mov ebp, edi
sub ebp, esi
push ebp
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebp
jne 0x4a4b82
cmp edi, ebx
mov esi, edi
jb 0x4a49e0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
xor ecx, ecx
cmp byte [ebx - 1], 0xd
setne cl
sub ecx, 1
and ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffc
jmp 0x4a4993
push eax
push ecx
push str._d____d_n
jmp 0x4a4b8b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
jmp 0x4a4b98
mov edx, dword [esp + 0x28]
mov ebp, edi
push 0
sub ebp, esi
lea ebx, [ebp + 1]
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
je 0x4a4aae
push ebx
push eax
push str.ret__d___p_d1__d_n
jmp 0x4a4b8b
test ebp, ebp
je 0x4a4acd
cmp byte [edi - 1], 0xd
mov dword [esp + 0x14], 0
jne 0x4a4ac3
add edi, 0xffffffff
mov eax, edi
sub eax, esi
add dword [esp + 0x10], eax
jmp 0x4a4ad9
cmp dword [esp + 0x14], 0
je 0x4a4ad9
sub dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
mov ecx, dword [0x58b6e4]
lea eax, [edx + 1]
cmp eax, ecx
jle 0x4a4af6
push ecx
push edx
push str.buflen__d__1____d_n
jmp 0x4a4b8b
mov ebx, dword [esp + 0x2c]
cmp eax, dword [ebx + 4]
jle 0x4a4b06
push eax
push ebx
call fcn.00523670
mov ebp, dword [ebx + 8]
sub edi, esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4a4b6f
mov ebx, dword [esi]
test ebx, ebx
je 0x4a4b53
cmp dword [esp + 0x14], esi
jne 0x4a4b39
push 0xfffb
lea ecx, [esi + 4]
push ecx
push ebp
call fcn.00549cb0
add esp, 0xc
add ebp, 0xfffb
jmp 0x4a4b63
push 0xfffc
lea edx, [esi + 4]
push edx
push ebp
call fcn.00549cb0
add esp, 0xc
add ebp, 0xfffc
jmp 0x4a4b63
push edi
lea eax, [esi + 4]
push eax
push ebp
call fcn.00549cb0
add esp, 0xc
add ebp, edi
push esi
call fcn.004a4810
test ebx, ebx
mov esi, ebx
jne 0x4a4b13
pop edi
pop esi
mov byte [ebp], 0
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 8
sub edi, esi
push edi
push eax
push str.ret__d___p_d__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a4bae
mov esi, dword [eax]
push eax
call fcn.004a4810
test esi, esi
mov eax, esi
jne 0x4a4ba0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 8
Function at 0x4a4bc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x14], ecx
xor esi, esi
mov dword [esp + 0x10], ecx
mov eax, dword [0x58b6e4]
test eax, eax
je 0x4a4be4
cmp ecx, eax
jg 0x4a4c46
push 0x10000
call fcn.004a47b0
cmp dword [esp + 0x14], 0
mov edi, eax
je 0x4a4bfb
mov dword [esi], edi
jmp 0x4a4bff
mov dword [esp + 0x14], edi
lea esi, [edi + 4]
lea ebx, [edi + 0x10000]
cmp esi, ebx
mov dword [esp + 0x1c], edi
mov dword [edi], 0
jae 0x4a4c34
push 0
mov eax, ebx
sub eax, esi
push eax
push esi
push ebp
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4a4c4f
test eax, eax
je 0x4a4c6a
add esi, eax
cmp esi, ebx
jb 0x4a4c16
add dword [esp + 0x10], 0xfffc
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
jmp 0x4a4bd7
push eax
push ecx
push str._d____d_n
jmp 0x4a4c8a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
jmp 0x4a4c97
mov edx, dword [esp + 0x10]
mov ecx, esi
sub ecx, edi
lea ecx, [edx + ecx - 4]
mov edx, dword [0x58b6e4]
lea eax, [ecx + 1]
cmp eax, edx
jle 0x4a4cba
push edx
push ecx
push str.buflen__d1____d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a4cae
nop
mov esi, dword [eax]
push eax
call fcn.004a4810
test esi, esi
mov eax, esi
jne 0x4a4ca0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov edi, dword [esp + 0x20]
cmp eax, dword [edi + 4]
jle 0x4a4cca
push eax
push edi
call fcn.00523670
mov ebx, dword [edi + 8]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4a4d20
cmp edi, dword [esp + 0x1c]
mov ebp, dword [edi]
jne 0x4a4cfc
mov eax, esi
sub eax, edi
sub eax, 4
push eax
lea ecx, [edi + 4]
push ecx
push ebx
call fcn.00549cb0
mov edx, esi
add esp, 0xc
sub edx, edi
lea ebx, [ebx + edx - 4]
jmp 0x4a4d14
push 0xfffc
lea eax, [edi + 4]
push eax
push ebx
call fcn.00549cb0
add esp, 0xc
add ebx, 0xfffc
push edi
call fcn.004a4810
test ebp, ebp
mov edi, ebp
jne 0x4a4cd5
pop edi
pop esi
pop ebp
mov byte [ebx], 0
mov eax, 1
pop ebx
add esp, 8
ret 8
Function at 0x4a5010
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push 0
push ebx
push ebp
push edi
call fcn.004af360
test eax, eax
je 0x4a5077
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a505e
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x4a509f
push esi
push eax
push str.NRFR_read_error__d____d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0x10
jmp 0x4a5077
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NRFR_read_error__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push ebp
push str.read_error__I64x__d_n
push 0xffff0000
call fcn.0048f0a0
mov edx, dword [esp + 0x28]
push esi
push 0
push edx
call fcn.0054a020
add esp, 0x20
pop ebp
pop ebx
ret 0xc