joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4861d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test dword [esi + 0x2c], 0x1000000
lea edi, [esi + 0x44]
je 0x48620d
push 0x10
push edi
push 0x4864e0
mov dword [esi + 0x138], 0
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x4862dd
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x486282
lea ecx, [edi + 0x20]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
test dword [esi + 0x2c], 0x80000
je 0x48622f
mov eax, dword [edi + 0x3c]
or eax, 1
mov dword [edi + 0x30], eax
push ecx
push 0
push 0
push 0x523f6c
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x486258
call ebx
cmp eax, 0x3e5
jne 0x486282
test dword [esi + 0x2c], 0x80000
je 0x4862dd
cmp dword [edi + 0x40], 0xffffffff
lea eax, [edi + 0x40]
jne 0x4862dd
push 4
push 0xffffffffffffffff
push edi
push 0x484a80
push dword [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x4862dd
call ebx
test eax, eax
jg 0x48628c
call ebx
jmp 0x486296
call ebx
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp + 8]
mov dword [edi + 0x20], eax
mov dword [edi + 0x38], 0
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x4862c8
mov eax, dword [eax + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [ecx + 0x28]
mov dword [eax + 0x38], edi
mov dword [ecx + 0x28], edi
or dword [esi + 0x2c], 0x10000
inc dword [esi + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [edi + 0x38], edi
mov dword [ecx + 0x28], edi
or dword [esi + 0x2c], 0x10000
inc dword [esi + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4862fd
push 0
push 0
push 0
push 0x32
push 0x4848d0
push eax
call fcn.004825c0
add esp, 0x18
or dword [esi + 0x2c], 0x10000
inc dword [esi + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x487000
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 0x3c]
cmp ecx, 0xffffffff
jne 0x48706f
mov eax, dword [esi + 0x2c]
test al, 0x40
je 0x4870d6
mov ecx, eax
and ecx, 0xffffffbf
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
jne 0x487045
test cl, 1
jne 0x487045
test al, 4
je 0x487045
and eax, 0xffffffbb
mov dword [esi + 0x2c], eax
test al, 8
je 0x487045
mov eax, dword [esi + 4]
dec dword [eax + 4]
cmp dword [esi + 0x88], 0
je 0x4870d6
push dword [edi + 0x20]
call fcn.0048e550
push eax
call fcn.0048dc50
push eax
mov eax, dword [esi + 0x88]
push esi
call eax
add esp, 0x10
jmp 0x4870d6
cmp dword [edi + 0x20], 0
jl 0x4870b6
push 4
lea eax, [esi + 0x90]
push eax
push 0x700b
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4870b6
mov eax, dword [esi + 0xa0]
mov dword [edi + 0x168], eax
mov eax, dword [esi + 0x88]
mov dword [esi + 0xa0], edi
test eax, eax
je 0x4870d6
push 0
push esi
call eax
jmp 0x4870d3
push dword [edi + 0x3c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x3c], 0xffffffff
test byte [esi + 0x2c], 0x40
je 0x4870d6
push edi
push esi
call fcn.00487d20
add esp, 8
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x2c]
dec ecx
mov dword [esi + 0x3c], ecx
test al, 1
je 0x4870fe
test ecx, ecx
jne 0x4870fe
test al, 0x20
jne 0x4870fe
mov ecx, dword [ebp + 8]
or eax, 0x20
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ecx + 0x2c], esi
pop edi
pop esi
pop ebp
ret

Function at 0x487110
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
add dword [esi + 0x40], 0xffffffff
jne 0x487139
mov eax, dword [esi + 0x2c]
test al, 1
jne 0x487139
test al, 4
je 0x487139
and eax, 0xfffffffb
mov dword [esi + 0x2c], eax
test al, 8
je 0x487139
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov edi, dword [ebp + 8]
push ebx
xor ebx, ebx
dec dword [edi + 0x10]
mov eax, dword [esi + 0x94]
test eax, eax
je 0x487154
mov dword [esi + 0x94], ebx
jmp 0x4871a6
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x20]
test eax, eax
js 0x48719d
test byte [esi + 0x2c], 1
je 0x48716b
mov ebx, 0x3e3
jmp 0x4871a8
push 0
push 0
push 0x7010
push 0xffff
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x487195
or dword [esi + 0x2c], 0xc080
inc dword [edi + 0x58]
jmp 0x4871a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4871a6
push eax
call fcn.0048e550
add esp, 4
mov ebx, eax
push ebx
call fcn.0048dc50
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [eax + 0x3c]
call eax
mov ecx, dword [esi + 0x3c]
add esp, 0xc
mov eax, dword [esi + 0x2c]
dec ecx
mov dword [esi + 0x3c], ecx
pop ebx
test al, 1
je 0x4871e1
test ecx, ecx
jne 0x4871e1
test al, 0x20
jne 0x4871e1
or eax, 0x20
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x28], eax
mov dword [edi + 0x2c], esi
pop edi
pop esi
pop ebp
ret
Function at 0x487f90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 8], 0x523ff0
mov dword [ebp - 0xc], 0
lea esi, [edi + 0x44]
lea ebx, [esi + 0x20]
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
or dword [edi + 0x2c], 0x40000
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
test dword [edi + 0x2c], 0x80000
je 0x487fe0
mov eax, dword [esi + 0x3c]
or eax, 1
mov dword [esi + 0x30], eax
push 0
push ebx
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x90]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ecx, dword [edi + 0x2c]
inc dword [edi + 0x3c]
or ecx, 0x10000
mov dword [edi + 0x2c], ecx
test eax, eax
jne 0x488059
test ecx, 0x20000
je 0x488076
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [esi + 0x24], eax
mov dword [esi + 0x38], 0
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x48804c
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x28]
pop edi
mov dword [eax + 0x38], esi
mov dword [ecx + 0x28], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x38], esi
pop edi
mov dword [ecx + 0x28], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x488076
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
test eax, eax
jg 0x4880b0
call edi
jmp 0x4880ba
test dword [edi + 0x2c], 0x80000
je 0x4880c8
cmp dword [esi + 0x40], 0xffffffff
lea eax, [esi + 0x40]
jne 0x4880c8
push 4
push 0xffffffffffffffff
push esi
push 0x484a80
push dword [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x4880c8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x4880b0
call edi
jmp 0x4880ba
call edi
movzx eax, ax
or eax, 0x80070000
push esi
push dword [ebp + 8]
mov dword [ebx], eax
call fcn.004855a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x488170
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 1
cmp dword [esi + 0x90], 0xffffffff
je 0x488192
mov eax, 0xfffff00e
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4881b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x488212
mov eax, dword [ebp + 8]
push 0
push edi
push dword [eax + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x4881e6
cmp dword [ebp + 0x18], eax
je 0x488212
or dword [esi + 0x2c], 0x80000
cmp dword [ebp + 0x14], 0x17
mov ecx, dword [0x7bbc74]
cmove ecx, dword [0x7bbc70]
mov eax, dword [esi + 0x2c]
test eax, 0x80000
jne 0x488228
test ecx, ecx
jne 0x488228
push 3
push edi
call dword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
jne 0x48821e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or dword [esi + 0x2c], 0x20000
mov eax, dword [esi + 0x2c]
test eax, 0x1000000
je 0x48823f
push 1
push edi
push esi
call fcn.00486ea0
add esp, 0xc
test eax, eax
jne 0x48826f
test dword [esi + 0x2c], 0x2000000
je 0x48825a
push 0x3c
push 1
push edi
push esi
call fcn.00486e50
add esp, 0x10
test eax, eax
jne 0x48826f
cmp dword [ebp + 0x14], 0x17
mov dword [esi + 0x90], edi
jne 0x48826d
or dword [esi + 0x2c], 0x400000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x488280
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x90], 0xffffffff
jne 0x488302
test bl, 1
je 0x4882b0
cmp word [edi], 0x17
je 0x4882b0
pop edi
pop esi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [edi]
push 0
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, 0xffffffff
jne 0x4882d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [edi]
push 0
push eax
push ecx
push esi
push dword [esi + 4]
call fcn.00488170
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
je 0x488302
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [edi], 0x17
jne 0x488324
push 4
lea eax, [ebp + 8]
and ebx, 1
push eax
push 0x1b
push 0x29
push dword [esi + 0x90]
mov dword [ebp + 8], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0x10]
push edi
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x48834c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x488355
mov dword [esi + 0x94], eax
or dword [esi + 0x2c], 0x2000
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4885f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x94], eax
push edi
and dword [esi + 0x2c], 0xfffeffff
mov eax, dword [ebx + 0x20]
test eax, eax
jns 0x4886b6
push eax
call fcn.0048e550
mov edi, eax
add esp, 4
cmp edi, 0x2738
je 0x4886b6
cmp edi, 0x2746
je 0x4886a9
cmp edi, 0x2744
je 0x4886a9
test dword [esi + 0x2c], 0x1000
je 0x488824
push esi
call fcn.004833b0
add esp, 4
test dword [esi + 0x2c], 0x40000
je 0x488677
push 0
push 0
call fcn.00482a80
add esp, 8
jmp 0x488683
mov eax, dword [esi + 0x80]
mov edx, dword [esi + 0x84]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
push 0
push 0
lea eax, [ebp - 0x8c]
push eax
push edi
call fcn.0048dc50
add esp, 4
push eax
jmp 0x488818
test dword [esi + 0x2c], 0x40000
je 0x488824
mov eax, dword [esi + 0x2c]
test eax, 0x40000
jne 0x4886e0
mov eax, dword [ebx + 0x20]
sar eax, 0x1f
and eax, 2
push eax
lea eax, [esi + 0x88]
push eax
lea eax, [esi + 0x80]
push eax
push dword [ebx + 0x24]
jmp 0x488818
test eax, 0x1000
je 0x488824
push 0
push 0
call fcn.00482a80
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [esi + 0x110]
push 0x10000
push esi
mov dword [ebp - 0x88], edx
call eax
add esp, 0x14
cmp dword [ebp - 0x88], 0
je 0x488808
cmp dword [ebp - 0x8c], 0
je 0x488808
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.004a68e0
add esp, 0xc
mov dword [ebp - 0x98], 0x80
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], 0
push 0
push 0
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x90]
push eax
push 1
lea eax, [ebp - 0x8c]
push eax
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x4887ab
push 0
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x90]
jmp 0x488818
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2738
jne 0x4887d3
push 2
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x90]
jmp 0x488818
cmp edi, 0x2733
jne 0x4887ea
push 0
push 0
lea eax, [ebp - 0x8c]
push eax
push 0
jmp 0x488818
cmp edi, 0x2746
je 0x4887db
cmp edi, 0x2744
je 0x4887db
push esi
call fcn.004833b0
add esp, 4
jmp 0x48868f
push 0
push 0
lea eax, [ebp - 0x8c]
push eax
push 0xfffff024
mov eax, dword [esi + 0x10c]
push esi
call eax
add esp, 0x14
mov ecx, dword [esi + 0x2c]
mov eax, ecx
mov ebx, dword [ebp - 0x94]
and eax, 0x11000
cmp eax, 0x1000
jne 0x488848
push esi
push ebx
call fcn.004889b0
mov ecx, dword [esi + 0x2c]
add esp, 8
mov eax, dword [esi + 0x3c]
dec eax
mov dword [esi + 0x3c], eax
test cl, 1
je 0x48886c
test eax, eax
jne 0x48886c
test cl, 0x20
jne 0x48886c
or ecx, 0x20
mov dword [esi + 0x2c], ecx
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x2c], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
Function at 0x48a170
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
cmp dword [esi], 0
je 0x48a1a4
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [ebp + 0xc]
nop
lea ecx, [ebp - 0x1c]
push ecx
push dword [eax + 0x90]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x48a1c8
call ebx
mov dword [esi], eax
movsx eax, word [ebp - 0x1c]
mov edx, edi
movsx esi, word [ebp - 0xc]
movsx edi, word [ebp - 0x16]
mov dword [0x518044], eax
movsx eax, word [ebp - 0x10]
sub esi, eax
mov eax, dword [0x51803c]
inc esi
mov dword [0x518040], esi
cmp eax, 0xffffffff
jne 0x48a1f6
mov eax, edi
jmp 0x48a200
mov ecx, edi
sub ecx, esi
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx ebx, word [ebp - 0x1a]
lea ecx, [esi + eax]
cmp ecx, ebx
jle 0x48a20f
mov eax, ebx
sub eax, esi
xor ecx, ecx
test eax, eax
cmovs eax, ecx
cmp byte [ebp + 0x18], cl
mov ecx, dword [ebp + 0x14]
mov dword [0x51803c], eax
je 0x48a227
add ecx, edi
jmp 0x48a229
add ecx, eax
cmp ecx, eax
jge 0x48a231
mov ecx, eax
jmp 0x48a23a
add eax, esi
cmp ecx, eax
jl 0x48a23a
lea ecx, [eax - 1]
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
je 0x48a249
movsx edx, word [ebp - 0x18]
add edx, edi
test edx, edx
jns 0x48a251
xor edx, edx
jmp 0x48a25c
movsx eax, word [ebp - 0x1c]
cmp edx, eax
jl 0x48a25c
lea edx, [eax - 1]
movzx ecx, cx
movzx eax, dx
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp - 0x20]
push ecx
push dword [eax + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x48a2ac
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov esi, dword [ebp - 0x24]
cmp eax, 0x57
mov eax, dword [ebp - 0x20]
je 0x48a1b0
call ebx
mov ecx, esi
pop edi
pop ebx
pop esi
mov dword [ecx], eax
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
Function at 0x48a530
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x2c]
and ecx, 0xffffefff
add dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x2c], ecx
mov eax, ecx
jne 0x48a576
test cl, 1
jne 0x48a576
test cl, 4
je 0x48a576
and eax, 0xfffffffb
mov dword [esi + 0x2c], eax
test al, 8
je 0x48a576
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov eax, dword [esi + 0x2c]
test eax, 0x10000
je 0x48a60a
test eax, 0x2000000
je 0x48a5cf
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
mov eax, 0x10
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x48a60a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
test eax, 0x200000
jne 0x48a60a
push 0x52402c
xor ebx, ebx
call fcn.0048db00
add esp, 4
mov eax, 2
mov ecx, 0x523ff4
xchg dword [ecx], eax
cmp eax, 1
je 0x48a61c
push 0x52402c
call fcn.0048dae0
add esp, 4
or dword [esi + 0x2c], 0x200000
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str.conout_
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, 1
cmp edi, 0xffffffff
je 0x48a66c
push 0x523ffc
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x48a667
mov eax, 0x523ff8
mov ecx, 1
lock or dword [eax], ecx
mov eax, ecx
jmp 0x48a66c
mov eax, 1
push 0
push 0xd
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0xd0001
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [ebp - 0xc], ax
mov eax, 0xd
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x34]
push eax
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 8], ebx
push eax
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x48a6ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp edi, 0xffffffff
je 0x48a6c6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test ebx, ebx
je 0x48a603
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
Function at 0x48e170
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push 0x524160
mov dword [0x7ac978], eax
call fcn.0048da00
add esp, 4
test eax, eax
jne 0x48e1cb
mov eax, 0x7ac17c
mov ecx, 0x524178
mov edx, 0x100
nop dword [eax + eax]
mov dword [eax], ecx
lea eax, [eax + 8]
add ecx, 0x2880
mov dword [eax - 0xc], 0
sub edx, 1
jne 0x48e1b0
mov esp, ebp
pop ebp
ret
push str.uv_mutex_init
push eax
call fcn.0048dbc0
int3

Function at 0x48e8f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7bbc60
push 0
push str.0.0.0.0
call fcn.00482ea0
add esp, 0xc
test eax, eax
jne 0x48ea4e
push 0x7bbc40
push eax
push 0x50397c
call fcn.00482ee0
add esp, 0xc
test eax, eax
jne 0x48ea4e
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x48ea40
lea eax, [ebp - 0x408]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x48ea53
push esi
push eax
push 1
push 2
mov dword [0x7bbc74], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x48e9d2
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0x274
push eax
lea eax, [ebp - 0x278]
push eax
push 0x2005
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x48e9cb
test dword [ebp - 0x278], 0x20000
mov ecx, 0
mov eax, dword [0x7bbc74]
cmovne eax, ecx
mov dword [0x7bbc74], eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push 1
push 0x17
mov dword [0x7bbc70], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x48ea3f
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0x274
push eax
lea eax, [ebp - 0x278]
push eax
push 0x2005
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x48ea38
test dword [ebp - 0x278], 0x20000
mov ecx, 0
mov eax, dword [0x7bbc70]
cmovne eax, ecx
mov dword [0x7bbc70], eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
call fcn.004b2fbd
push str.WSAStartup
push eax
call fcn.0048dbc0
int3
Function at 0x4a9cb4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a5580
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004b2b04
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a9cf6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a9e52
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004a55e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x7ad700]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004b2f41
mov ecx, dword [esi*4 + 0x7ad700]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4a9e4b
cmp eax, dword [ecx + edi + 0x24]
jne 0x4a9e4b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a9e4b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b2f41
add esp, 0x14
test edx, edx
jl 0x4a9e4b
jg 0x4a9dc1
test eax, eax
jb 0x4a9e4b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a9e4b
jl 0x4a9ddb
cmp dword [ebp - 0x1008], eax
ja 0x4a9e4b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a9df9
test ebx, ebx
je 0x4a9e32
cmp ecx, edi
jae 0x4a9e32
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a9e13
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a9e1f
cmp byte [ecx + 1], 0xa
jne 0x4a9e1f
inc ecx
jmp 0x4a9e1f
movzx eax, al
movsx eax, byte [eax + 0x518188]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a9df9
cmp edx, ebx
jne 0x4a9df9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a9e50
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a4a5b
leave
ret