joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dc00
Capabilities:
Get file size
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45baa8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
push 0
push 0
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push 1
cmovae eax, dword [ebp + 8]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41dc9a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebp + 0x1c], 0x10
jb 0x41dc7a
push dword [ebp + 8]
call fcn.0043e223
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 0x1c
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x41dc67
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x41dc67
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x41dc67
push edi
call fcn.0043a02c
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x1c]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41dc67
push 0
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41dc67
push ebx
call fcn.0043e1fc
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x20]
push 0
push eax
push 0
push 2
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 4
call esi
test eax, eax
je 0x41dc67
push 2
call fcn.0043a02c
push dword [ebp - 0x20]
mov edi, eax
call fcn.0043fcf8
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x20]
push 0
push eax
push ebx
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x41ddb2
xor esi, esi
cmp dword [ebp - 0x20], esi
jbe 0x41ddb2
jmp 0x41dd90
movzx eax, byte [esi + ebx]
push eax
push str._02x
push edi
call fcn.0043eae5
mov ecx, dword [ebp - 0x24]
add esp, 0xc
push edi
call fcn.00402c30
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x41dd90
push ebx
call fcn.0043e084
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, 1
jmp 0x41dc69
Function at 0x41fc90
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41fd0e
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x41fd08
shr eax, 8
cmp al, 2
jne 0x41fd08
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41fcf7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
Function at 0x423d10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
jne 0x423d42
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423d47
sub ecx, edx
push edi
lea eax, [ecx - 1]
test eax, eax
js 0x423d61
cmp byte [eax + esi], 0x5c
je 0x423d76
dec eax
jns 0x423d58
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 4
lea edi, [eax + esi]
test edi, edi
je 0x423d61
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423d9e
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 4
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00443760
sub edi, esi
add esp, 0xc
test edi, edi
jle 0x423dcb
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00441040
add esp, 0xc
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
call fcn.00423d10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 4

Function at 0x423e00
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1bc]
push eax
push 0x202
mov ebx, ecx
mov dword [ebp - 0x10], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea ecx, [ebp - 0x10]
mov dword [ebx + 4], eax
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
lea esi, [ebx + 0xc]
mov word [esi], ax
xor eax, eax
push edi
mov word [ebx + 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
push esi
push dword [ebx + 4]
mov dword [ebx + 0x10], eax
call dword [sym.imp.WS2_32.dll_bind]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push eax
lea eax, [ebp - 0x1cc]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x1ca]
call dword [sym.imp.WS2_32.dll_ntohs]
push dword [ebp - 0x1c8]
movzx eax, ax
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x423ed3
xor ecx, ecx
jmp 0x423ee1
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423ed8
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004037a0
cmp dword [ebp - 0x14], 0x10
jb 0x423efc
push dword [ebp - 0x28]
call fcn.0043e223
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 4
Function at 0x423f10
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Set socket configuration
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 1
mov dword [ebp - 0x18], ebx
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x423f4e
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push eax
lea eax, [ebx + 0xc]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 8], eax
cmp eax, 0xffffffff
je 0x423f3a
push esi
push 0x2808
call fcn.0043a02c
push 0x2808
mov esi, eax
push 0
push esi
call fcn.00443760
push 0x468ff8
push edi
call fcn.0043f3ae
add esp, 0x18
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xbb8
push 4
push eax
push 0x1006
push 0xffff
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x423ff6
push 0
push 8
push esi
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x423ff6
mov eax, dword [esi + 4]
movzx edi, al
shl edi, 8
mov dword [ebp - 8], eax
movzx eax, ah
add edi, eax
movzx eax, byte [ebp - 6]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 5]
shl edi, 8
add edi, eax
jne 0x424014
push esi
call fcn.0043e223
add esp, 4
xor al, al
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 4
call fcn.004585c0
push edi
xor ebx, ebx
call fcn.0043a02c
push edi
push ebx
push eax
mov dword [ebp - 8], eax
call fcn.00443760
add esp, 0x10
test edi, edi
je 0x424066
mov eax, dword [ebp - 0x18]
push 0
push 0x2800
push esi
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x424066
mov ecx, dword [ebp - 8]
push eax
add ecx, ebx
push esi
push ecx
call fcn.00441040
add ebx, dword [ebp - 0x1c]
add esp, 0xc
cmp ebx, edi
jb 0x424033
push dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
push 1
push edi
push ebx
call fcn.0043e381
push dword [ebp - 0x14]
call fcn.0043e4ba
push ebx
call fcn.0043e223
call fcn.004585c0
push esi
call fcn.0043e223
mov ecx, dword [ebp - 4]
add esp, 0x1c
xor ecx, ebp
mov al, 1
pop esi
pop edi
pop ebx
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 4
Function at 0x4240b0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push 1
mov dword [ebp - 0x14], ebx
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4240e7
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x10
push eax
lea eax, [ebx + 0xc]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 8], eax
cmp eax, 0xffffffff
je 0x4240d6
push edi
push 0x2808
call fcn.0043a02c
push 0x2808
mov edi, eax
push 0
push edi
call fcn.00443760
add esp, 0x10
mov dword [ebp - 0xc], 0xbb8
lea eax, [ebp - 0xc]
push 4
push eax
push 0x1006
push 0xffff
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x42415c
push 0
push 8
push edi
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x424177
push edi
call fcn.0043e223
add esp, 4
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
push esi
movzx esi, al
shl esi, 8
mov dword [ebp - 8], eax
movzx eax, ah
add esi, eax
movzx eax, byte [ebp - 6]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 5]
shl esi, 8
add esi, eax
jne 0x4241b9
push edi
call fcn.0043e223
add esp, 4
xor al, al
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
call fcn.004585c0
push esi
xor ebx, ebx
call fcn.0043a02c
push esi
push ebx
push eax
mov dword [ebp - 8], eax
call fcn.00443760
add esp, 0x10
test esi, esi
je 0x424213
jmp 0x4241e0
mov eax, dword [ebp - 0x14]
push 0
push 0x2800
push edi
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x424213
mov ecx, dword [ebp - 8]
push eax
add ecx, ebx
push edi
push ecx
call fcn.00441040
add ebx, dword [ebp - 0x18]
add esp, 0xc
cmp ebx, esi
jb 0x4241e0
mov ebx, dword [0x476ad0]
test ebx, ebx
je 0x42423a
push ebx
call fcn.0043e223
mov eax, dword [0x476ad0]
add esp, 4
test ebx, ebx
mov ecx, 0x8123
cmovne eax, ecx
mov dword [0x476ad0], eax
push esi
call fcn.0043a02c
mov ebx, dword [ebp - 8]
push esi
push ebx
push eax
mov dword [0x476ad0], eax
call fcn.00441040
push ebx
mov dword [0x476acc], esi
call fcn.0043e223
call fcn.004585c0
push edi
call fcn.0043e223
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
mov al, 1
pop esi
pop edi
pop ebx
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
Function at 0x424280
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x4714d0]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42433b
mov eax, dword [esp + 0x10]
cmp al, 2
jne 0x42433b
shr eax, 8
cmp al, 2
jne 0x42433b
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x42433b
push dword [ebp + 0xc]
mov eax, 2
lea ebx, [esi + 4]
mov word [ebx], ax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, edi
mov word [esi + 6], ax
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424300
sub ecx, edx
jne 0x424314
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
jmp 0x42431b
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, dword [sym.imp.WS2_32.dll_connect]
mov dword [esi + 8], eax
push 0x10
push ebx
push dword [esi]
call edi
cmp eax, 0xffffffff
je 0x424324
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 8

Function at 0x424360
Capabilities:
Get file size
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push 0
push 0x8000000
push 3
push 0
push 1
push closesocket
push eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x424457
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.0043a02c
add esp, 4
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push 0
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x42444a
cmp dword [ebp - 8], ebx
jne 0x42444a
push 0x2808
call fcn.0043a02c
push 0x2808
mov edi, eax
push 0
push edi
call fcn.00443760
mov esi, dword [sym.imp.WS2_32.dll_send]
mov eax, ebx
shr eax, 0x18
add esp, 0x10
mov dword [edi], 0x27a92f01
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ebx
shr eax, 8
mov byte [edi + 6], al
mov eax, dword [ebp - 0x14]
push 0
push 8
push edi
mov byte [edi + 7], bl
push dword [eax]
call esi
call fcn.004585c0
mov eax, dword [ebp - 0x14]
push 0
push ebx
push dword [ebp - 0x10]
push dword [eax]
call esi
cmp eax, 0xffffffff
jne 0x424442
call fcn.004585c0
push edi
call fcn.0043e223
jmp 0x424452
push dword [ebp - 0x10]
call fcn.0043e084
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 4
Function at 0x424470
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x476acc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test ebx, ebx
je 0x4244fb
push edi
push 0x2808
call fcn.0043a02c
push 0x2808
mov edi, eax
push 0
push edi
call fcn.00443760
mov dword [edi], 0x27a92f01
mov eax, ebx
shr eax, 0x18
add esp, 0x10
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ebx
push 0
push 8
shr eax, 8
mov byte [edi + 6], al
push edi
mov byte [edi + 7], bl
push dword [esi]
mov esi, dword [sym.imp.WS2_32.dll_send]
call esi
call fcn.004585c0
mov eax, dword [ebp - 4]
push 0
push ebx
push dword [0x476ad0]
push dword [eax]
call esi
cmp eax, 0xffffffff
jne 0x4244f1
call fcn.004585c0
push edi
call fcn.0043e223
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42f3b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d3ff
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4714d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.Json::BuiltStyledStreamWriter.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x28], 0xf
mov dword [esi + 0x24], 0
mov byte [esi + 0x14], 0
push 0xffffffffffffffff
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
mov dword [esi + 0x2c], 0x4a
push 0
push dword [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402fc0
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x4c]
push 0xffffffffffffffff
mov byte [ebp - 4], 3
mov dword [esi + 0x48], eax
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402fc0
push 0xffffffffffffffff
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
push 0
push dword [ebp + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402fc0
push 0xffffffffffffffff
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
push 0
push dword [ebp + 0x18]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402fc0
mov ecx, dword [ebp + 0x1c]
mov al, byte [esi + 0x94]
and cl, 1
and al, 0xf8
shl cl, 2
or cl, al
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x98], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x9c], eax
mov eax, esi
mov byte [esi + 0x94], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x20

Function at 0x4311a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
lea eax, [ebp - 0x11c]
mov esi, ecx
push 0
push eax
call fcn.00443760
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x43121f
mov eax, dword [ebp - 0x118]
cmp eax, 1
je 0x431202
cmp eax, 2
jne 0x431289
push 2
push 0x469a88
mov ecx, esi
call fcn.004037a0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x431289
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x43124b
push 5
push str.Vista
mov ecx, esi
call fcn.004037a0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x43126c
push eax
push 0x469a94
mov ecx, esi
call fcn.004037a0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x431278
push 0x469a98
jmp 0x431282
cmp eax, 3
jne 0x431289
push 0x469a9c
mov ecx, esi
call fcn.00403f80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
Function at 0x4312e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
xor bl, bl
push 2
mov byte [ebp - 0x239], bl
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x240], eax
test eax, eax
jne 0x431319
mov bl, 1
jmp 0x4313cd
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4313c1
lea esp, [esp]
mov ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
mov esi, dword [ebp + 8]
xor ebx, ebx
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x4313a4
xor edi, edi
cmp dword [edi + esi + 0x14], 8
lea eax, [edi + esi]
jb 0x43136d
mov eax, dword [eax]
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x431429
mov ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
mov esi, dword [ebp + 8]
inc ebx
sub ecx, esi
add edi, 0x18
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jl 0x431361
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x431340
mov bl, byte [ebp - 0x239]
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
test esi, esi
je 0x431416
mov edi, dword [ebp + 0xc]
cmp esi, edi
je 0x43140d
jmp 0x4313e0
cmp dword [esi + 0x14], 8
jb 0x4313f0
push dword [esi]
call fcn.0043e223
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x4313e0
mov esi, dword [ebp + 8]
push esi
call fcn.0043e223
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x4313c1
Function at 0x434490
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x43449b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x434565
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x467270]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x467270]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x467270]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x467270]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x467270]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x467270]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x467270]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x467270]
dec edi
jne 0x4344b0
pop edi
test esi, esi
je 0x43458a
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x467270]
dec esi
jne 0x434570
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4345a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x467270]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x467270]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x4345f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov bl, dl
mov edx, ecx
push edi
mov edi, dword [edx + 8]
mov esi, edi
mov ecx, dword [edx]
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x467270]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
and eax, 0xff
xor edi, dword [eax*4 + 0x467270]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret