joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c8d13
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4f5160]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0xf
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], ecx
mov byte [eax + 4], cl
mov dword [esp + 0xc], ecx
mov dword [eax + 0x50], edx
mov dword [eax + 0x4c], ecx
mov byte [eax + 0x3c], cl
mov byte [esp + 0xc], 1
or edx, 0xffffffff
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x47ca60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c8cb3
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4f5160]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edi
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402820
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
push 0xffffffffffffffff
lea ecx, [esi + 0x38]
lea eax, [edi + 0x38]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402820
mov dword [esp + 0x14], 0xffffffff
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 0x47d7e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x4f5160]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0x10
push eax
push 0
push 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x18], 0x52
mov byte [esp + 0x19], 0x45
mov byte [esp + 0x1a], 0x51
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0049d2c8
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4f5160]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push 0x10
push eax
push 0
push 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x18], 0x41
mov byte [esp + 0x19], 0x43
mov byte [esp + 0x1a], 0x4b
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0049d2c8
add esp, 0x1c
ret

Function at 0x47dc10
Capabilities:
Resume thread

Disassembly:
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x47dc18
ret
cmp dword [edi + 0x10], 0
push ebx
push ebp
lea ebp, [edi + 0x10]
je 0x47dc58
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x47dc36
pop ebp
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x47dc4f
push esi
lea esi, [eax - 1]
test esi, esi
jbe 0x47dc4e
mov eax, dword [edi + 0xc]
push eax
call ebx
sub esi, 1
jne 0x47dc43
pop esi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x47dcb0
Capabilities:
Print debug messages
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1120
call fcn.004bdb50
mov eax, dword [0x4f5160]
xor eax, esp
mov dword [esp + 0x111c], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
mov edi, dword [sym.imp.WS2_32.dll_recvfrom]
lea esp, [esp]
push 0x1000
lea eax, [esp + 0x124]
push 0
push eax
mov dword [esp + 0x18], 0x10
call fcn.004a2b10
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push 0
push 0x1000
lea eax, [esp + 0x130]
push eax
push ecx
call edi
cmp eax, 0xffffffff
jne 0x47dd39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x47dd94
push str.unreachable_host__n
call ebx
jmp 0x47dce0
cmp byte [esp + 0x120], 0x52
jne 0x47dce0
cmp byte [esp + 0x121], 0x45
jne 0x47dce0
cmp byte [esp + 0x122], 0x51
jne 0x47dce0
push str.REQ_received__n
call ebx
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
push edx
mov edx, dword [esi + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0047d840
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47dce0
push str.failed_to_send_ack__n
call ebx
jmp 0x47dce0
push eax
push str.recvfrom_failed___err:__d__n
mov eax, 0xff
lea edi, [esp + 0x28]
call fcn.0040c950
add esp, 8
test eax, eax
je 0x47ddb4
mov eax, edi
push eax
call ebx
mov ecx, dword [esp + 0x1124]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049d2c8
mov esp, ebp
pop ebp
ret
Function at 0x47e3e0
Capabilities:
Print debug messages
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1130
call fcn.004bdb50
mov eax, dword [0x4f5160]
xor eax, esp
mov dword [esp + 0x112c], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
lea esp, [esp]
push 0x1000
lea eax, [esp + 0x134]
push 0
push eax
mov dword [esp + 0x18], 0x10
call fcn.004a2b10
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x24]
push edx
push 0
push 0x1000
lea eax, [esp + 0x140]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x47e499
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x47e552
push 0
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, esi
call fcn.0047e2b0
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
movzx eax, ax
add esp, 4
or eax, 0x27460000
push eax
push ecx
push edx
call edi
push str.unreachable_host__n
call ebx
jmp 0x47e410
cmp byte [esp + 0x130], 0x41
jne 0x47e546
cmp byte [esp + 0x131], 0x43
jne 0x47e546
cmp byte [esp + 0x132], 0x4b
jne 0x47e546
cmp dword [esi + 0x18], 0
je 0x47e4de
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x47e4e6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
sub eax, dword [esp + 0x138]
sbb ecx, dword [esp + 0x13c]
cmp dword [esi + 0x18], 0
je 0x47e51b
push 0
push 0x3e8
push ecx
push eax
call fcn.004b6050
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x20]
push ecx
push edx
push eax
call fcn.004c5dd0
mov dword [esp + 0x1c], edx
push eax
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, esi
call fcn.0047e2b0
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
add esp, 4
movzx eax, ax
push eax
push ecx
push edx
call edi
push str.ACK_received__n
call ebx
jmp 0x47e410
push str.unknown_datagram_received__n
call ebx
jmp 0x47e410
push eax
push str.recvfrom_failed___err:__d__n
mov eax, 0xff
lea edi, [esp + 0x38]
call fcn.0040c950
add esp, 8
test eax, eax
je 0x47e572
mov eax, edi
push eax
call ebx
mov ecx, dword [esp + 0x1134]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049d2c8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0338
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4f5160]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4f5160]
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.004800c0
xor ebx, ebx
cmp eax, ebx
je 0x481fe5
cmp edi, ebx
je 0x481fe5
mov ecx, dword [eax + 0x28]
cmp ecx, ebx
je 0x481fe5
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.0046e7f0
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 0x481ef8
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00402db0
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 0x481f5a
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x280
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049d13d
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x481fd4
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x481fcb
mov eax, 6
cmp dword [edi + 0x190], eax
jne 0x481fc1
cmp dword [edi + 0x1a0], eax
jne 0x481fc1
lea esi, [edi + 0x1ac]
lea ecx, [ecx]
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x481f8f
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x481fb2
cmp dl, bl
je 0x481fae
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x481fb2
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x481f92
xor eax, eax
jmp 0x481fb7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x482007
mov esi, dword [esi]
cmp esi, ebx
jne 0x481f80
mov edi, dword [edi]
cmp edi, ebx
jne 0x481f62
mov edi, dword [esp + 0x10]
push edi
call fcn.0049d7de
add esp, 4
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00402ef0
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.0049d2c8
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.0049d7de
add esp, 4
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x482047
mov eax, dword [esp + 0x30]
push eax
call fcn.0049d3aa
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov eax, 1
jmp 0x481fe7
Function at 0x488670
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d01c3
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4f5160]
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.0048b230
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x58]
push ecx
call fcn.0047d6c0
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 0x488700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d017d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4f5160]
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.00488a20
mov byte [esp + 0x1c], 1
lea ecx, [esi + 0x58]
call fcn.0040d1b0
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.0048b280
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esi + 0x2c], 0x10
jb 0x48877c
mov eax, dword [esi + 0x18]
push eax
call fcn.0049d3aa
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 0x48a610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0008
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x4f5160]
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 0x48a64d
call fcn.00475a10
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 0x48a787
cmp ebx, dword [esp + 0x14]
sete al
test al, al
sete al
test al, al
je 0x48a6ba
cmp ebx, dword [edi + 4]
je 0x48a6b5
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x48a6ac
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp ebx, dword [edi + 4]
je 0x48a6b5
mov ebx, dword [ebx]
jmp 0x48a680
jmp fcn.0048e670
lea ebx, [esi + 0x40]
call fcn.0048bf90
lea edi, [esi + 0x6c]
mov ebx, edi
call fcn.0048d820
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 0x48a782
push eax
push ebx
push ecx
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebx
mov dword [esp + 0x30], edi
call fcn.0048eed0
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x18], edi
ja 0x48a782
push eax
push ebx
lea edx, [esp + 0x18]
push edx
push 9
mov ecx, ebx
call fcn.0048eff0
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 0x48a770
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.00490860
jmp fcn.0048d210
Function at 0x491340
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 0x491365
test esi, esi
je 0x491360
cmp esi, dword [esp + 0x1c]
je 0x491365
call fcn.0049d0fe
cmp edi, dword [esp + 0x20]
je 0x4913d1
cmp esi, 0xfffffffe
mov ebx, edi
je 0x491397
test esi, esi
jne 0x49137b
call fcn.0049d0fe
cmp dword [esi + 0x18], 0x10
jb 0x491386
mov eax, dword [esi + 4]
jmp 0x491389
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x491397
call fcn.0049d0bf
add edi, 1
cmp esi, 0xfffffffe
je 0x4913c4
test esi, esi
jne 0x4913a8
call fcn.0049d0fe
cmp dword [esi + 0x18], 0x10
jb 0x4913b3
mov eax, dword [esi + 4]
jmp 0x4913b6
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x4913c4
call fcn.0049d0bf
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x491351
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x493e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
test esi, esi
jne 0x493e23
pop esi
xor al, al
pop ebp
ret 4
test ebp, ebp
mov dword [ecx + 4], 0xffffffff
jbe 0x493e5a
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 + 0x4fad70]
add esi, 1
sub ebp, 1
mov dword [ecx + 4], eax
jne 0x493e34
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 0x494000
Capabilities:
Resolve dns

Disassembly:
push ecx
test esi, esi
jne 0x494009
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 0x494010
sub eax, edx
je 0x494005
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x494047
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x494039
or eax, 0xffffffff
pop ecx
ret
cmp word [eax + 0xa], 4
jne 0x494034
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop ecx
ret

Function at 0x494240
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x4f5160]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [esi + 4], 0
je 0x494276
mov eax, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0049d2c8
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 0x4942c6
mov ax, word [esp]
cmp al, bl
jne 0x4942c0
cmp ah, byte [esp + 0x19c]
jne 0x4942c0
mov eax, 1
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0049d2c8
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.0049d2c8
add esp, 0x198
ret 4

Function at 0x4989b0
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 0x498a19
lea edi, [esi + 4]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebx], 0
jne 0x498a12
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 0x498a0e
call ebx
sub eax, edi
push eax
lea edi, [esi + 0x70]
call fcn.00498c10
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x4989e0
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 0x499980
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x49cb80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4cfa13
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4f5160]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.0049ca70
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.0047d6c0
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 0x49cf20
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x49cf53
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.004a0d44
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
je 0x49cf5b
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 0x49cf60
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
push ebx
je 0x49cfa3
cmp dword [esi + 0x18], 1
jne 0x49cfa3
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x49cf80
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x49cf9c
push edi
lea edi, [eax - 1]
test edi, edi
jbe 0x49cf9b
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x49cf90
pop edi
mov dword [esi + 0x18], 0
mov eax, 1
pop ebx
ret

Function at 0x49cfb0
Capabilities:
Resume thread
Suspend thread

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

Function at 0x49d2c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f5160]
jne 0x49d2d2
repz ret
jmp fcn.004a19e8
Function at 0x4a213f
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 + 0x4f5170]
je 0x4a215a
inc edi
cmp edi, 0x17
jb 0x4a214b
cmp edi, 0x17
jae 0x4a22da
push ebp
push 3
call fcn.004b479d
cmp eax, 1
pop ecx
je 0x4a22a6
push 3
call fcn.004b479d
test eax, eax
pop ecx
jne 0x4a218e
cmp dword [0x4f5090], 1
je 0x4a22a6
cmp ebx, 0xfc
je 0x4a22d9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4f9550
push ebp
call fcn.0049dd26
add esp, 0xc
test eax, eax
je 0x4a21c4
push esi
push esi
push esi
push esi
push esi
call fcn.0049fdb4
add esp, 0x14
push 0x104
mov esi, 0x4f9569
push esi
push 0
mov byte [0x4f966d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a2208
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0049dd26
add esp, 0xc
test eax, eax
je 0x4a2208
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049fdb4
add esp, 0x14
push esi
call fcn.004a0fe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4a224d
push esi
call fcn.004a0fe0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4f9864
push 0x4d6ce8
sub ecx, eax
push ecx
push eax
call fcn.004aacb8
add esp, 0x14
test eax, eax
je 0x4a224d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049fdb4
add esp, 0x14
jmp 0x4a224f
xor esi, esi
push 0x4dcdac
push ebx
push ebp
call fcn.004b472c
add esp, 0xc
test eax, eax
je 0x4a226f
push esi
push esi
push esi
push esi
push esi
call fcn.0049fdb4
add esp, 0x14
push dword [edi*8 + 0x4f5174]
push ebx
push ebp
call fcn.004b472c
add esp, 0xc
test eax, eax
je 0x4a2291
push esi
push esi
push esi
push esi
push esi
call fcn.0049fdb4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b456f
add esp, 0xc
jmp 0x4a22d9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4a22d9
cmp ebp, 0xffffffff
je 0x4a22d9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4f5174]
push dword [esi]
call fcn.004a0fe0
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