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

Disassembly:
push 0xffffffffffffffff
push 0x4ae968
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4ce090]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
jne 0x45b486
mov eax, 0x8009
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
lea esi, [edi + 0x10]
cmp esi, ebx
jne 0x45b492
call fcn.004599e0
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], ebx
call eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ebx
mov ecx, dword [edi + 0x140]
cmp ecx, ebx
je 0x45b510
cmp dword [0x4d3500], ebx
je 0x45b510
push 1
mov dword [esp + 0x14], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push ebx
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x45b510
mov eax, dword [0x4d3500]
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], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push ebx
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jne 0x45b4e1
cmp dword [edi + 8], 1
jne 0x45b595
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x45b58e
cmp dword [edi + 0xc], ebx
je 0x45b559
call fcn.00478510
mov eax, dword [edi + 4]
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [edi + 4]
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push 4
push ebx
push ebx
push ebx
push 0x4004667f
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x45b57d
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x80
push 0xffff
push eax
mov word [esp + 0x24], 1
mov word [esp + 0x26], bx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
cmp dword [0x4d3504], ebx
jne 0x45b5a2
call fcn.0045b1c0
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x24], ebx
je 0x45b5c4
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
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 ebx
add esp, 0x24
ret

Function at 0x45b840
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 0x45c400
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
sub eax, 0
je 0x45c431
sub eax, 1
jne 0x45c43b
mov ecx, dword [ebx + 0x98]
cmp ecx, dword [ebx + 0x9c]
lea eax, [ebx + 0x60]
jne 0x45c42a
mov eax, 6
pop esi
pop ecx
ret
call fcn.0045a890
jmp 0x45c43b
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 0x45c4c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x45c483
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
cmp eax, 0x2733
je 0x45c4a9
cmp eax, 8
je 0x45c4a9
cmp eax, 0x2747
je 0x45c4a9
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.004642a0
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 0x45cab0
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 0x45cad2
xor ebp, ebp
mov dword [esi + 0x38], ebp
jmp 0x45caed
sub eax, ecx
push edi
mov edi, eax
mov eax, dword [esi + 0x34]
push edi
add ecx, eax
push ecx
push eax
call fcn.004834c0
add esp, 0xc
mov dword [esi + 0x38], edi
xor ebp, ebp
pop edi
mov eax, esi
mov dword [esi + 0x3c], ebp
call fcn.0045a890
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 0x45cb5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x45cb5c
cmp eax, 0x2733
je 0x45cb53
cmp eax, 8
je 0x45cb53
cmp eax, 0x2747
je 0x45cb53
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x460b20
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 0x460b65
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 0x460b65
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 0x460ba3
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 0x460bdb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
xor eax, eax
pop ebp
ret 4
call fcn.00460e10
test eax, eax
je 0x460b5e
mov eax, esi
call fcn.00460e40
pop esi
mov eax, 1
pop ebp
ret 4

Function at 0x463ef0
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 0x464420
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ae748
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4ce090]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4ce090]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea esi, [eax + 0x28c]
mov dword [esp + 0x18], edi
call fcn.00462680
xor ebx, ebx
cmp eax, ebx
je 0x4645a5
cmp edi, ebx
je 0x4645a5
mov ecx, dword [eax + 0x28]
cmp ecx, ebx
je 0x4645a5
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.0045b840
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 0x4644b8
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004031b0
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 0x46451a
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x280
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00480d6b
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x464594
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x46458b
mov eax, 6
cmp dword [edi + 0x190], eax
jne 0x464581
cmp dword [edi + 0x1a0], eax
jne 0x464581
lea esi, [edi + 0x1ac]
lea ecx, [ecx]
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x46454f
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x464572
cmp dl, bl
je 0x46456e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x464572
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x464552
xor eax, eax
jmp 0x464577
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4645c7
mov esi, dword [esi]
cmp esi, ebx
jne 0x464540
mov edi, dword [edi]
cmp edi, ebx
jne 0x464522
mov edi, dword [esp + 0x10]
push edi
call fcn.0048108b
add esp, 4
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00404040
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.00480d70
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.0048108b
add esp, 4
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x464607
mov eax, dword [esp + 0x30]
push eax
call fcn.00480ed5
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov eax, 1
jmp 0x4645a7
Function at 0x46c5d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ae573
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4ce090]
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.0046f200
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x58]
push ecx
call fcn.00461b20
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 0x46c660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae52d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4ce090]
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.0046c980
mov byte [esp + 0x1c], 1
lea ecx, [esi + 0x58]
call fcn.00406e90
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.0046f250
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esi + 0x2c], 0x10
jb 0x46c6dc
mov eax, dword [esi + 0x18]
push eax
call fcn.00480ed5
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 0x46e570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ae3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x4ce090]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ebx, [esi + 4]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0xc], ebx
jne 0x46e5ad
call fcn.004599e0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov ecx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edi
call eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edi
mov eax, dword [esi + 0x48]
mov ebx, dword [eax]
lea edi, [esi + 0x44]
mov ecx, eax
mov dword [esp + 0x14], ecx
lea ecx, [ecx]
cmp edi, edi
jne 0x46e6e7
cmp ebx, dword [esp + 0x14]
sete al
test al, al
sete al
test al, al
je 0x46e61a
cmp ebx, dword [edi + 4]
je 0x46e615
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x46e60c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp ebx, dword [edi + 4]
je 0x46e615
mov ebx, dword [ebx]
jmp 0x46e5e0
jmp fcn.004726d0
lea ebx, [esi + 0x40]
call fcn.0046ff60
lea edi, [esi + 0x6c]
mov ebx, edi
call fcn.00471880
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x7c]
lea ebx, [esi + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], edi
xor edi, edi
cmp ecx, eax
mov dword [esp + 0x18], edi
ja 0x46e6e2
push eax
push ebx
push ecx
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebx
mov dword [esp + 0x30], edi
call fcn.00472f30
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x18], edi
ja 0x46e6e2
push eax
push ebx
lea edx, [esp + 0x18]
push edx
push 9
mov ecx, ebx
call fcn.00473050
mov eax, 1
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xc4], edi
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], edi
je 0x46e6d0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.004748f0
jmp fcn.00471260
Function at 0x475440
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 0x475465
test esi, esi
je 0x475460
cmp esi, dword [esp + 0x1c]
je 0x475465
call fcn.00480d2c
cmp edi, dword [esp + 0x20]
je 0x4754d1
cmp esi, 0xfffffffe
mov ebx, edi
je 0x475497
test esi, esi
jne 0x47547b
call fcn.00480d2c
cmp dword [esi + 0x18], 0x10
jb 0x475486
mov eax, dword [esi + 4]
jmp 0x475489
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x475497
call fcn.00480ced
add edi, 1
cmp esi, 0xfffffffe
je 0x4754c4
test esi, esi
jne 0x4754a8
call fcn.00480d2c
cmp dword [esi + 0x18], 0x10
jb 0x4754b3
mov eax, dword [esi + 4]
jmp 0x4754b6
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x4754c4
call fcn.00480ced
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x475451
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x477f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
test esi, esi
jne 0x477f23
pop esi
xor al, al
pop ebp
ret 4
test ebp, ebp
mov dword [ecx + 4], 0xffffffff
jbe 0x477f5a
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 + 0x4d3520]
add esi, 1
sub ebp, 1
mov dword [ecx + 4], eax
jne 0x477f34
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 0x478100
Capabilities:
Resolve dns

Disassembly:
push ecx
test esi, esi
jne 0x478109
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 0x478110
sub eax, edx
je 0x478105
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x478147
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x478139
or eax, 0xffffffff
pop ecx
ret
cmp word [eax + 0xa], 4
jne 0x478134
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop ecx
ret

Function at 0x478340
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x4ce090]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [esi + 4], 0
je 0x478376
mov eax, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00480d70
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 0x4783c6
mov ax, word [esp]
cmp al, bl
jne 0x4783c0
cmp ah, byte [esp + 0x19c]
jne 0x4783c0
mov eax, 1
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00480d70
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.00480d70
add esp, 0x198
ret 4

Function at 0x47bc80
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 0x47bce9
lea edi, [esi + 4]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebx], 0
jne 0x47bce2
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 0x47bcde
call ebx
sub eax, edi
push eax
lea edi, [esi + 0x70]
call fcn.0047bee0
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x47bcb0
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 0x480740
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x480773
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.00483b03
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
je 0x48077b
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 0x480780
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
push ebx
je 0x4807c3
cmp dword [esi + 0x18], 1
jne 0x4807c3
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4807a0
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x4807bc
push edi
lea edi, [eax - 1]
test edi, edi
jbe 0x4807bb
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x4807b0
pop edi
mov dword [esi + 0x18], 0
mov eax, 1
pop ebx
ret

Function at 0x4807d0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
je 0x480815
cmp dword [esi + 0x18], 0
jne 0x480815
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4807f3
mov dword [esi + 0x18], 0
xor eax, eax
ret
test eax, eax
jbe 0x48080e
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 0x480801
pop edi
pop ebx
mov dword [esi + 0x18], 1
mov eax, 1
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4adf53
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ce090]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.00480830
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.00461b20
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 0x480d70
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ce090]
jne 0x480d7a
repz ret
jmp fcn.004841fa
Function at 0x488b56
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 + 0x4ce238]
je 0x488b71
inc edi
cmp edi, 0x17
jb 0x488b62
cmp edi, 0x17
jae 0x488cf1
push ebp
push 3
call fcn.00496bdc
cmp eax, 1
pop ecx
je 0x488cbd
push 3
call fcn.00496bdc
test eax, eax
pop ecx
jne 0x488ba5
cmp dword [0x4ce08c], 1
je 0x488cbd
cmp ebx, 0xfc
je 0x488cf0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4d1cd0
push ebp
call fcn.004821a0
add esp, 0xc
test eax, eax
je 0x488bdb
push esi
push esi
push esi
push esi
push esi
call fcn.00482e44
add esp, 0x14
push 0x104
mov esi, 0x4d1ce9
push esi
push 0
mov byte [0x4d1ded], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x488c1f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004821a0
add esp, 0xc
test eax, eax
je 0x488c1f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00482e44
add esp, 0x14
push esi
call fcn.00483bc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x488c64
push esi
call fcn.00483bc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4d1fe4
push 0x4b4d38
sub ecx, eax
push ecx
push eax
call fcn.0048aa42
add esp, 0x14
test eax, eax
je 0x488c64
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00482e44
add esp, 0x14
jmp 0x488c66
xor esi, esi
push 0x4b8f78
push ebx
push ebp
call fcn.00496b6b
add esp, 0xc
test eax, eax
je 0x488c86
push esi
push esi
push esi
push esi
push esi
call fcn.00482e44
add esp, 0x14
push dword [edi*8 + 0x4ce23c]
push ebx
push ebp
call fcn.00496b6b
add esp, 0xc
test eax, eax
je 0x488ca8
push esi
push esi
push esi
push esi
push esi
call fcn.00482e44
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004969ae
add esp, 0xc
jmp 0x488cf0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x488cf0
cmp ebp, 0xffffffff
je 0x488cf0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4ce23c]
push dword [esi]
call fcn.00483bc0
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