joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a480
Capabilities:
Print debug messages
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1130
call fcn.0049ff30
mov eax, dword [0x4cd094]
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.00484950
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 0x45a539
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x45a5f2
push 0
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, esi
call fcn.0045a350
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 0x45a4b0
cmp byte [esp + 0x130], 0x41
jne 0x45a5e6
cmp byte [esp + 0x131], 0x43
jne 0x45a5e6
cmp byte [esp + 0x132], 0x4b
jne 0x45a5e6
cmp dword [esi + 0x18], 0
je 0x45a57e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x45a586
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 0x45a5bb
push 0
push 0x3e8
push ecx
push eax
call fcn.00497f20
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x20]
push ecx
push edx
push eax
call fcn.004a0890
mov dword [esp + 0x1c], edx
push eax
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, esi
call fcn.0045a350
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 0x45a4b0
push str.unknown_datagram_received__n
call ebx
jmp 0x45a4b0
push eax
push str.recvfrom_failed___err:__d__n
mov eax, 0xff
lea edi, [esp + 0x38]
call fcn.00408ae0
add esp, 8
test eax, eax
je 0x45a612
mov eax, edi
push eax
call ebx
mov ecx, dword [esp + 0x1134]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004804c6
mov esp, ebp
pop ebp
ret

Function at 0x45bbd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [edx]
push esi
mov ecx, 0x20
push edi
lea esp, [esp]
mov edi, eax
shr edi, 2
xor edi, eax
shr edi, 2
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
mov esi, eax
ror esi, 1
xor edi, eax
and esi, 0xfffffffe
and edi, 1
or esi, edi
sub ecx, 1
mov eax, esi
jne 0x45bbe0
pop edi
mov dword [edx], eax
pop esi
ret

Function at 0x45c010
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
cmp dword [esi + 4], 0xffffffff
mov dword [esi + 8], eax
jne 0x45c043
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x45c043
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
call fcn.0045bff0
xor eax, eax
ret
mov eax, 1
ret
Function at 0x45c560
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4ae148
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4cd094]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
jne 0x45c5a6
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 0x45c5b2
call fcn.00458bc0
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 0x45c630
cmp dword [0x4d2524], ebx
je 0x45c630
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 0x45c630
mov eax, dword [0x4d2524]
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 0x45c601
cmp dword [edi + 8], 1
jne 0x45c6b5
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x45c6ae
cmp dword [edi + 0xc], ebx
je 0x45c679
call fcn.0046e930
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 0x45c69d
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 [0x4d2528], ebx
jne 0x45c6c2
call fcn.0045c2e0
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x24], ebx
je 0x45c6e4
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 0x45c960
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 0x45d520
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
sub eax, 0
je 0x45d551
sub eax, 1
jne 0x45d55b
mov ecx, dword [ebx + 0x98]
cmp ecx, dword [ebx + 0x9c]
lea eax, [ebx + 0x60]
jne 0x45d54a
mov eax, 6
pop esi
pop ecx
ret
call fcn.0045b9b0
jmp 0x45d55b
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 0x45d5e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x45d5a3
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
cmp eax, 0x2733
je 0x45d5c9
cmp eax, 8
je 0x45d5c9
cmp eax, 0x2747
je 0x45d5c9
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.004650f0
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 0x45dbd0
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 0x45dbf2
xor ebp, ebp
mov dword [esi + 0x38], ebp
jmp 0x45dc0d
sub eax, ecx
push edi
mov edi, eax
mov eax, dword [esi + 0x34]
push edi
add ecx, eax
push ecx
push eax
call fcn.00482b60
add esp, 0xc
mov dword [esi + 0x38], edi
xor ebp, ebp
pop edi
mov eax, esi
mov dword [esi + 0x3c], ebp
call fcn.0045b9b0
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 0x45dc7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x45dc7c
cmp eax, 0x2733
je 0x45dc73
cmp eax, 8
je 0x45dc73
cmp eax, 0x2747
je 0x45dc73
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x461d30
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 0x461d75
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 0x461d75
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 0x461db3
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 0x461deb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
xor eax, eax
pop ebp
ret 4
call fcn.00462020
test eax, eax
je 0x461d6e
mov eax, esi
call fcn.00462050
pop esi
mov eax, 1
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4aded8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4cd094]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4cd094]
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.004634e0
xor ebx, ebx
cmp eax, ebx
je 0x4653f5
cmp edi, ebx
je 0x4653f5
mov ecx, dword [eax + 0x28]
cmp ecx, ebx
je 0x4653f5
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.0045c960
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 0x465308
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00401e60
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 0x46536a
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x280
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004803f5
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4653e4
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x4653db
mov eax, 6
cmp dword [edi + 0x190], eax
jne 0x4653d1
cmp dword [edi + 0x1a0], eax
jne 0x4653d1
lea esi, [edi + 0x1ac]
lea ecx, [ecx]
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x46539f
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4653c2
cmp dl, bl
je 0x4653be
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4653c2
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4653a2
xor eax, eax
jmp 0x4653c7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x465417
mov esi, dword [esi]
cmp esi, ebx
jne 0x465390
mov edi, dword [edi]
cmp edi, ebx
jne 0x465372
mov edi, dword [esp + 0x10]
push edi
call fcn.00480687
add esp, 4
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00401fc0
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.004804c6
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.00480687
add esp, 4
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x465457
mov eax, dword [esp + 0x30]
push eax
call fcn.004804d5
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov eax, 1
jmp 0x4653f7
Function at 0x46e330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
test esi, esi
jne 0x46e343
pop esi
xor al, al
pop ebp
ret 4
test ebp, ebp
mov dword [ecx + 4], 0xffffffff
jbe 0x46e37a
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 + 0x4d2530]
add esi, 1
sub ebp, 1
mov dword [ecx + 4], eax
jne 0x46e354
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 0x46e520
Capabilities:
Resolve dns

Disassembly:
push ecx
test esi, esi
jne 0x46e529
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 0x46e530
sub eax, edx
je 0x46e525
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x46e567
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x46e559
or eax, 0xffffffff
pop ecx
ret
cmp word [eax + 0xa], 4
jne 0x46e554
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop ecx
ret

Function at 0x46e760
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x4cd094]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [esi + 4], 0
je 0x46e796
mov eax, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004804c6
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 0x46e7e6
mov ax, word [esp]
cmp al, bl
jne 0x46e7e0
cmp ah, byte [esp + 0x19c]
jne 0x46e7e0
mov eax, 1
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004804c6
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.004804c6
add esp, 0x198
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x4addf3
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4cd094]
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.004715f0
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x58]
push ecx
call fcn.0046b800
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 0x46ea30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4addad
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4cd094]
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.0046ed50
mov byte [esp + 0x1c], 1
lea ecx, [esi + 0x58]
call fcn.0040f1a0
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.00471640
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esi + 0x2c], 0x10
jb 0x46eaac
mov eax, dword [esi + 0x18]
push eax
call fcn.004804d5
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 0x470970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4adba8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x4cd094]
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 0x4709ad
call fcn.00458bc0
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 0x470ae7
cmp ebx, dword [esp + 0x14]
sete al
test al, al
sete al
test al, al
je 0x470a1a
cmp ebx, dword [edi + 4]
je 0x470a15
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x470a0c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp ebx, dword [edi + 4]
je 0x470a15
mov ebx, dword [ebx]
jmp 0x4709e0
jmp fcn.00474920
lea ebx, [esi + 0x40]
call fcn.00472330
lea edi, [esi + 0x6c]
mov ebx, edi
call fcn.00473b70
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 0x470ae2
push eax
push ebx
push ecx
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebx
mov dword [esp + 0x30], edi
call fcn.00475180
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x18], edi
ja 0x470ae2
push eax
push ebx
lea edx, [esp + 0x18]
push edx
push 9
mov ecx, ebx
call fcn.004752a0
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 0x470ad0
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.00476a50
jmp fcn.00473580
Function at 0x4775a0
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 0x4775c5
test esi, esi
je 0x4775c0
cmp esi, dword [esp + 0x1c]
je 0x4775c5
call fcn.004803b6
cmp edi, dword [esp + 0x20]
je 0x477631
cmp esi, 0xfffffffe
mov ebx, edi
je 0x4775f7
test esi, esi
jne 0x4775db
call fcn.004803b6
cmp dword [esi + 0x18], 0x10
jb 0x4775e6
mov eax, dword [esi + 4]
jmp 0x4775e9
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x4775f7
call fcn.00480377
add edi, 1
cmp esi, 0xfffffffe
je 0x477624
test esi, esi
jne 0x477608
call fcn.004803b6
cmp dword [esi + 0x18], 0x10
jb 0x477613
mov eax, dword [esi + 4]
jmp 0x477616
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x477624
call fcn.00480377
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x4775b1
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x47c5a0
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 0x47c609
lea edi, [esi + 4]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebx], 0
jne 0x47c602
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ecx]
call edi
mov ecx, dword [esi + 0x4c]
mov ebx, eax
mov eax, dword [esi + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47c5fe
call edi
sub eax, ebx
push eax
lea ebx, [esi + 0x70]
call fcn.0047c800
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x47c5d0
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 0x47fdd0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x47fe03
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.00482aab
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
je 0x47fe0b
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 0x47fe10
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
push ebx
je 0x47fe53
cmp dword [esi + 0x18], 1
jne 0x47fe53
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x47fe30
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x47fe4c
push edi
lea edi, [eax - 1]
test edi, edi
jbe 0x47fe4b
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x47fe40
pop edi
mov dword [esi + 0x18], 0
mov eax, 1
pop ebx
ret

Function at 0x47fe60
Capabilities:
Resume thread
Suspend thread

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

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

Disassembly:
push 0xffffffffffffffff
push 0x4ad713
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4cd094]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.0047fec0
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.0046b800
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 0x4804c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cd094]
jne 0x4804d0
repz ret
jmp fcn.004836ea