joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464030
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4bdb98
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x4df210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp edi, esi
jne 0x464076
mov eax, 0x8009
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
lea ecx, [edi + 0x10]
cmp ecx, esi
jne 0x464088
call fcn.00462f90
mov ebp, dword [esp + 0x1c]
jmp 0x4640a6
mov ebp, ecx
mov dword [esp + 0x1c], ebp
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov dword [esp + 0x28], esi
call eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], esi
mov ecx, dword [edi + 0x140]
cmp ecx, esi
je 0x464106
cmp dword [0x4eaba8], esi
je 0x464106
push 1
mov dword [esp + 0x14], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push esi
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, esi
je 0x464106
mov eax, dword [0x4eaba8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [edi + 0x140]
push 1
mov dword [esp + 0x14], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push esi
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, esi
jne 0x4640d7
cmp dword [edi + 8], 1
jne 0x464183
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x46417c
cmp dword [edi + 0xc], esi
je 0x464147
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [edi + 4]
push esi
push esi
lea eax, [esp + 0x20]
push eax
push 4
push esi
push esi
push esi
push 0x4004667f
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x46416b
push 4
lea edx, [esp + 0x14]
push edx
push 0x80
push 0xffff
push eax
mov word [esp + 0x24], 1
mov word [esp + 0x26], si
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
cmp dword [0x4eabac], esi
jne 0x464190
call fcn.00463d90
mov dword [esp + 0x30], 0xffffffff
cmp ebp, esi
jne 0x4641a1
call fcn.00462f90
cmp dword [esp + 0x24], esi
je 0x4641bc
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret

Function at 0x464460
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ecx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [ecx + 4]
lea eax, [esp]
push eax
push esi
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, esi
pop ecx
ret
Function at 0x465080
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
sub eax, 0
je 0x4650b1
sub eax, 1
jne 0x4650bb
mov ecx, dword [ebx + 0x98]
cmp ecx, dword [ebx + 0x9c]
lea eax, [ebx + 0x60]
jne 0x4650aa
mov eax, 6
pop esi
pop ecx
ret
call fcn.00463460
jmp 0x4650bb
movzx edx, word [esi + 0x103e]
mov dword [esi + 0x24], edx
push ebp
push edi
lea ebp, [ebx + 0x14c]
push ebp
xor edi, edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebx + 4]
push edi
push esi
push edi
lea eax, [esp + 0x18]
push eax
push ecx
add esi, 0x24
push esi
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x465145
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x465103
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
cmp eax, 0x2733
je 0x465129
cmp eax, 8
je 0x465129
cmp eax, 0x2747
je 0x465129
push ebp
mov edi, 0x8002
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
push eax
push str.WSASend_____NERR_TOO_MANY_OUTSTANDING:__d
push 0
call fcn.0046cff0
add esp, 0xc
push ebp
mov edi, 0x8005
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret

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

Disassembly:
mov eax, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0xe0]
sub esp, 8
cmp eax, ecx
push ebp
push esi
lea esi, [ebx + 0xa4]
jne 0x4657d2
xor ebp, ebp
mov dword [esi + 0x38], ebp
jmp 0x4657ed
sub eax, ecx
push edi
mov edi, eax
mov eax, dword [esi + 0x34]
push edi
add ecx, eax
push ecx
push eax
call fcn.0048f780
add esp, 0xc
mov dword [esi + 0x38], edi
xor ebp, ebp
pop edi
mov eax, esi
mov dword [esi + 0x3c], ebp
call fcn.00463460
mov ecx, dword [ebx + 0xc4]
push ebp
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 4]
push ecx
lea edx, [ebx + 0xc8]
push edx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
pop esi
pop ebp
jne 0x46585c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x46585c
cmp eax, 0x2733
je 0x465853
cmp eax, 8
je 0x465853
cmp eax, 0x2747
je 0x465853
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x469a30
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
cmp dword [esi + 4], 0xffffffff
mov byte [esi + 0xa8], 1
jne 0x469a75
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x469a75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
pop esi
xor eax, eax
pop ebp
ret 4
xor eax, eax
test bp, bp
push edi
lea edi, [esi + 0xb8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov word [edi], 2
jbe 0x469ab3
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 4]
push 0x10
push edi
push edx
mov word [esi + 0xba], ax
mov dword [esi + 0xbc], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x469aeb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
xor eax, eax
pop ebp
ret 4
call fcn.00469d40
test eax, eax
je 0x469a6e
mov eax, esi
call fcn.00469d70
pop esi
mov eax, 1
pop ebp
ret 4

Function at 0x46cc30
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
add esp, 0x24
ret
Function at 0x46d180
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bd998
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4df210]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4df210]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
lea ecx, [eax + 0x360]
mov dword [esp + 0x18], esi
call fcn.0046b2f0
xor ebx, ebx
cmp eax, ebx
je 0x46d305
cmp esi, ebx
je 0x46d305
mov ecx, dword [eax + 0x28]
cmp ecx, ebx
je 0x46d305
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x58], ebx
lea esi, [esp + 0x1c]
call fcn.00464460
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x46d218
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00408860
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x46d27a
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x280
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048ca15
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x46d2f4
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x46d2eb
mov eax, 6
cmp dword [edi + 0x190], eax
jne 0x46d2e1
cmp dword [edi + 0x1a0], eax
jne 0x46d2e1
lea esi, [edi + 0x1ac]
lea ecx, [ecx]
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x46d2af
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46d2d2
cmp dl, bl
je 0x46d2ce
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46d2d2
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x46d2b2
xor eax, eax
jmp 0x46d2d7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x46d327
mov esi, dword [esi]
cmp esi, ebx
jne 0x46d2a0
mov edi, dword [edi]
cmp edi, ebx
jne 0x46d282
mov edi, dword [esp + 0x10]
push edi
call fcn.0048cdcd
add esp, 4
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.004098b0
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0048cf20
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0x194]
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov edx, dword [esp + 0x10]
mov cx, word [edi + 0x198]
push edx
mov word [eax + 4], cx
call fcn.0048cdcd
add esp, 4
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x46d367
mov eax, dword [esp + 0x30]
push eax
call fcn.0048d056
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov eax, 1
jmp 0x46d307
Function at 0x477500
Capabilities:
Resolve dns

Disassembly:
push ecx
test esi, esi
jne 0x477509
xor eax, eax
pop ecx
ret
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x477510
sub eax, edx
je 0x477505
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x477547
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x477539
or eax, 0xffffffff
pop ecx
ret
cmp word [eax + 0xa], 4
jne 0x477534
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop ecx
ret

Function at 0x477740
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x4df210]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [esi + 4], 0
je 0x477776
mov eax, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0048cf20
add esp, 0x198
ret 4
xor ecx, ecx
mov ch, byte [esp + 0x19c]
lea eax, [esp]
push eax
mov cl, bl
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4777c6
mov ax, word [esp]
cmp al, bl
jne 0x4777c0
cmp ah, byte [esp + 0x19c]
jne 0x4777c0
mov eax, 1
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0048cf20
add esp, 0x198
ret 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
xor eax, eax
call fcn.0048cf20
add esp, 0x198
ret 4
Function at 0x478dc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
test esi, esi
jne 0x478dd3
pop esi
xor al, al
pop ebp
ret 4
test ebp, ebp
mov dword [ecx + 4], 0xffffffff
jbe 0x478e0a
push edi
mov edi, dword [ecx]
shl edi, 8
movzx edx, byte [esi]
mov eax, dword [ecx + 4]
xor edx, eax
and edx, 0xff
add edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4eabc0]
add esi, 1
sub ebp, 1
mov dword [ecx + 4], eax
jne 0x478de4
pop edi
movzx edx, word [ecx + 6]
movzx ecx, word [ecx + 4]
push ebx
mov bl, dh
mov al, ch
add al, bl
pop ebx
add al, dl
pop esi
add al, cl
pop ebp
ret 4

Function at 0x478f30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bd853
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4df210]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.IFile.0
xor ebx, ebx
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov dword [esp + 0x14], ebx
lea eax, [esi + 0x30]
push eax
call fcn.0047be00
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x58]
push ecx
call fcn.004757f0
mov byte [esp + 0x14], 2
or eax, 0xffffffff
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esp + 0x14], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x478fc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bd80d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4df210]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.IFile.0
mov dword [esp + 0x1c], 2
call fcn.004792f0
mov byte [esp + 0x1c], 1
lea ecx, [esi + 0x58]
call fcn.00433af0
xor ebx, ebx
mov byte [esp + 0x1c], bl
lea eax, [esi + 0x30]
mov dword [esp + 0x10], eax
mov byte [esp + 0x1c], bl
push eax
call fcn.0047be50
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esi + 0x2c], 0x10
jb 0x47903c
mov eax, dword [esi + 0x18]
push eax
call fcn.0048d056
add esp, 4
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x482040
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebp, 0x811c9dc5
cmp esi, 0xfffffffe
je 0x482065
test esi, esi
je 0x482060
cmp esi, dword [esp + 0x1c]
je 0x482065
call fcn.0048c9d6
cmp edi, dword [esp + 0x20]
je 0x4820d1
cmp esi, 0xfffffffe
mov ebx, edi
je 0x482097
test esi, esi
jne 0x48207b
call fcn.0048c9d6
cmp dword [esi + 0x18], 0x10
jb 0x482086
mov eax, dword [esi + 4]
jmp 0x482089
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x482097
call fcn.0048c997
add edi, 1
cmp esi, 0xfffffffe
je 0x4820c4
test esi, esi
jne 0x4820a8
call fcn.0048c9d6
cmp dword [esi + 0x18], 0x10
jb 0x4820b3
mov eax, dword [esi + 4]
jmp 0x4820b6
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x4820c4
call fcn.0048c997
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x482051
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x487f30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
push esi
push edi
mov esi, ecx
jne 0x487f99
lea edi, [esi + 4]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebx], 0
jne 0x487f92
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ecx]
call ebx
mov ecx, dword [esi + 0x4c]
mov edi, eax
mov eax, dword [esi + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x487f8e
call ebx
sub eax, edi
push eax
lea edi, [esi + 0x70]
call fcn.004881a0
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x487f60
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4897e0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
jne 0x4897ec
xor al, al
ret 4
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
add eax, 1
ret 4

Function at 0x489880
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
jne 0x489892
xor al, al
add esp, 8
ret 4
mov ecx, 4
mov dword [esp], ecx
mov dword [esp + 4], ecx
lea ecx, [esp]
push ecx
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
add esp, 8
ret 4
Function at 0x48c3a0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x48c3d3
lea eax, [esi + 0x1c]
push eax
mov eax, dword [esp + 8]
push 4
push ecx
lea edx, [esi + 4]
push edx
push eax
push 0
call fcn.0048fdc3
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
je 0x48c3db
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
ret 8
xor eax, eax
ret 8

Function at 0x48c3e0
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
push ebx
je 0x48c423
cmp dword [esi + 0x18], 1
jne 0x48c423
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x48c400
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x48c41c
push edi
lea edi, [eax - 1]
test edi, edi
jbe 0x48c41b
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x48c410
pop edi
mov dword [esi + 0x18], 0
mov eax, 1
pop ebx
ret

Function at 0x48c430
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c475
cmp dword [esi + 0x18], 0
jne 0x48c475
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x48c453
mov dword [esi + 0x18], 0
xor eax, eax
ret
test eax, eax
jbe 0x48c46e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov edi, eax
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x48c461
pop edi
pop ebx
mov dword [esi + 0x18], 1
mov eax, 1
ret

Function at 0x48c5a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bd233
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4df210]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.0048c490
xor edi, edi
mov dword [esp + 0x14], edi
xor eax, eax
mov dword [esi], vtable.CThreadControl.0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
lea eax, [esi + 0x44]
push eax
mov dword [esi + 0x2c], 0xffffffff
call fcn.004757f0
mov eax, 1
mov byte [esp + 0x14], al
mov dword [esi + 0x40], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x48cf20
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4df210]
jne 0x48cf2a
repz ret
jmp fcn.00491b3e
Function at 0x48d05b
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 0x48d098
cmp dword [ebp + 0x14], edi
je 0x48d098
cmp ecx, edi
jne 0x48d09f
call fcn.00491a70
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048eeea
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x48d0b3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x48d0d4
cmp ebx, 0xffffffff
je 0x48d0c3
push ebx
push edi
push ecx
call fcn.00491650
add esp, 0xc
cmp esi, edi
je 0x48d080
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x48d080
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x48d0f0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x48d0f7
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x48d1e8
test word [esi + 0xc], 0x10c
je 0x48d14b
mov eax, dword [esi + 4]
test eax, eax
je 0x48d14b
jl 0x48d249
cmp ebx, eax
mov edi, ebx
jb 0x48d11c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x48d1f0
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048cea5
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 0x48d1e0
cmp ebx, dword [ebp - 0xc]
jb 0x48d1b8
cmp dword [ebp - 0xc], 0
je 0x48d175
mov ecx, accept
xor edx, edx
cmp ebx, ecx
jbe 0x48d16a
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x48d171
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x48d180
mov eax, accept
cmp ebx, eax
ja 0x48d180
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x48d21c
push eax
push dword [ebp - 8]
push esi
call fcn.00492ae5
pop ecx
push eax
call fcn.004929e8
add esp, 0xc
test eax, eax
je 0x48d25b
cmp eax, 0xffffffff
je 0x48d249
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x48d1e0
push esi
call fcn.00492307
cmp eax, 0xffffffff
pop ecx
je 0x48d24d
cmp dword [ebp - 4], 0
je 0x48d21c
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 0x48d0ff
mov eax, dword [ebp + 0x14]
jmp 0x48d09a
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x48d207
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00491650
add esp, 0xc
call fcn.00491a70
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x48d090
cmp dword [ebp + 0xc], 0xffffffff
je 0x48d232
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00491650
add esp, 0xc
call fcn.00491a70
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x48d090
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x48d09a
or dword [esi + 0xc], 0x10
jmp 0x48d24d
Function at 0x4938de
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 + 0x4df5a0]
je 0x4938f9
inc edi
cmp edi, 0x17
jb 0x4938ea
cmp edi, 0x17
jae 0x493a79
push ebp
push 3
call fcn.004a6982
cmp eax, 1
pop ecx
je 0x493a45
push 3
call fcn.004a6982
test eax, eax
pop ecx
jne 0x49392d
cmp dword [0x4df08c], 1
je 0x493a45
cmp ebx, 0xfc
je 0x493a78
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4e2d98
push ebp
call fcn.0048dd48
add esp, 0xc
test eax, eax
je 0x493963
push esi
push esi
push esi
push esi
push esi
call fcn.0048edb6
add esp, 0x14
push 0x104
mov esi, 0x4e2db1
push esi
push 0
mov byte [0x4e2eb5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4939a7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0048dd48
add esp, 0xc
test eax, eax
je 0x4939a7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048edb6
add esp, 0x14
push esi
call fcn.0048fe80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4939ec
push esi
call fcn.0048fe80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4e30ac
push 0x4c3ca8
sub ecx, eax
push ecx
push eax
call fcn.004975be
add esp, 0x14
test eax, eax
je 0x4939ec
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048edb6
add esp, 0x14
jmp 0x4939ee
xor esi, esi
push 0x4c8f48
push ebx
push ebp
call fcn.004a6911
add esp, 0xc
test eax, eax
je 0x493a0e
push esi
push esi
push esi
push esi
push esi
call fcn.0048edb6
add esp, 0x14
push dword [edi*8 + 0x4df5a4]
push ebx
push ebp
call fcn.004a6911
add esp, 0xc
test eax, eax
je 0x493a30
push esi
push esi
push esi
push esi
push esi
call fcn.0048edb6
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004a6754
add esp, 0xc
jmp 0x493a78
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x493a78
cmp ebp, 0xffffffff
je 0x493a78
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4df5a4]
push dword [esi]
call fcn.0048fe80
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