joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478e50
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 0x4885b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4a3350]
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
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0
push 3
push 0
push 1
push accept
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x478eea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebp + 0x1c], 0x10
jb 0x478eca
push dword [ebp + 8]
call fcn.004235a4
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.0042419e
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 0x478eb7
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 0x478eb7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x478eb7
push edi
call fcn.0041fc85
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 0x478eb7
push 0
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x478eb7
push ebx
call fcn.00424199
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 0x478eb7
push 2
call fcn.0041fc85
push dword [ebp - 0x20]
mov edi, eax
call fcn.00426a3c
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 0x479002
xor esi, esi
cmp dword [ebp - 0x20], esi
jbe 0x479002
jmp 0x478fe0
movzx eax, byte [esi + ebx]
push eax
push str._02x
push edi
call fcn.00425315
mov ecx, dword [ebp - 0x24]
add esp, 0xc
push edi
call fcn.004052a0
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x478fe0
push ebx
call fcn.004239a7
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 0x478eb9
Function at 0x479da0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a3350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
jne 0x479dd2
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x479dd7
sub ecx, edx
push edi
lea eax, [ecx - 1]
test eax, eax
js 0x479df1
cmp byte [eax + esi], 0x5c
je 0x479e06
dec eax
jns 0x479de8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret 4
lea edi, [eax + esi]
test edi, edi
je 0x479df1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x479e2e
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret 4
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00424c50
sub edi, esi
add esp, 0xc
test edi, edi
jle 0x479e5b
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00424600
add esp, 0xc
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
call fcn.00479da0
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.0042419e
mov esp, ebp
pop ebp
ret 4

Function at 0x479f20
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, 0x1c4
mov eax, dword [0x4a3350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1b4]
push eax
push 0x202
mov ebx, ecx
mov dword [ebp - 0xc], 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 - 0xc]
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 - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x1c4]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x1c2]
call dword [sym.imp.WS2_32.dll_ntohs]
push dword [ebp - 0x1c0]
movzx eax, ax
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
cmp byte [edx], 0
jne 0x479ff3
xor ecx, ecx
jmp 0x47a001
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x479ff8
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.00406980
cmp dword [ebp - 0x10], 0x10
pop edi
pop esi
pop ebx
jb 0x47a01f
push dword [ebp - 0x24]
call fcn.004235a4
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret 4
Function at 0x47a030
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4a3350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push 1
mov dword [ebp - 0x14], ebx
push dword [ebx + 4]
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x47a075
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret 8
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 0x47a062
push esi
push 0x2808
call fcn.0041fc85
push 0x2808
mov esi, eax
push 0
push esi
call fcn.00424c50
add esp, 0x10
mov dword [ebp - 0x10], 0xbb8
lea eax, [ebp - 0x10]
push 4
push eax
push 0x1006
push 0xffff
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x47a0ea
push 0
push 8
push esi
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x47a107
push esi
call fcn.004235a4
add esp, 4
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
push edi
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
je 0x47a18d
call fcn.004831e2
push edi
xor ebx, ebx
call fcn.0041fc85
push edi
push ebx
push eax
mov dword [ebp - 8], eax
call fcn.00424c50
add esp, 0x10
test edi, edi
je 0x47a184
lea esp, [esp]
mov eax, dword [ebp - 0x14]
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 0x47a184
push eax
mov eax, dword [ebp - 8]
push esi
lea ecx, [eax + ebx]
push ecx
call fcn.00424600
add ebx, dword [ebp - 0x1c]
add esp, 0xc
cmp ebx, edi
jb 0x47a150
cmp edi, ebx
je 0x47a1ab
call fcn.004831e2
push esi
call fcn.004235a4
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.0041fc85
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
push edi
push ebx
push eax
mov dword [ecx], eax
call fcn.00424600
mov eax, dword [ebp - 0x20]
push ebx
mov dword [eax], edi
call fcn.004235a4
call fcn.004831e2
push esi
call fcn.004235a4
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0042419e
mov esp, ebp
pop ebp
ret 8
Function at 0x47a220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4a3350]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x47a2ce
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x47a2ce
shr eax, 8
cmp al, 2
jne 0x47a2ce
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47a2ce
push ebx
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a292
sub ecx, edx
jne 0x47a2a6
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
jmp 0x47a2ad
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 0x47a2b6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042419e
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test ebx, ebx
je 0x47a367
push edi
push 0x2808
call fcn.0041fc85
push 0x2808
mov edi, eax
push 0
push edi
call fcn.00424c50
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.004831e2
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax]
mov eax, dword [ebp - 4]
push dword [eax]
call esi
cmp eax, 0xffffffff
jne 0x47a35d
call fcn.004831e2
push edi
call fcn.004235a4
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47a370
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 [0x4a3350]
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 accept
push eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x47a467
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.0041fc85
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 0x47a45a
cmp dword [ebp - 8], ebx
jne 0x47a45a
push 0x2808
call fcn.0041fc85
push 0x2808
mov edi, eax
push 0
push edi
call fcn.00424c50
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.004831e2
mov eax, dword [ebp - 0x14]
push 0
push ebx
push dword [ebp - 0x10]
push dword [eax]
call esi
cmp eax, 0xffffffff
jne 0x47a452
call fcn.004831e2
push edi
call fcn.004235a4
jmp 0x47a462
push dword [ebp - 0x10]
call fcn.004239a7
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042419e
mov esp, ebp
pop ebp
ret 4
Function at 0x47ab40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4a3350]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x118
push 0
push eax
call fcn.00424c50
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 0x47abc0
mov eax, dword [ebp - 0x118]
cmp eax, 1
je 0x47aba3
cmp eax, 2
jne 0x47ac2a
push 2
push 0x498cac
mov ecx, esi
call fcn.00406980
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x47ac2a
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x47abec
push 5
push str.Vista
mov ecx, esi
call fcn.00406980
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x47ac0d
push eax
push 0x498cb8
mov ecx, esi
call fcn.00406980
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x47ac19
push 0x498cbc
jmp 0x47ac23
cmp eax, 3
jne 0x47ac2a
push 0x498cc0
mov ecx, esi
call fcn.004129f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042419e
mov esp, ebp
pop ebp
ret

Function at 0x47ac40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4a3350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
xor bl, bl
push 2
mov byte [ebp - 0x231], bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x47ac78
mov bl, 1
jmp 0x47ad2c
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47ad20
jmp 0x47aca0
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 0x47ad04
xor edi, edi
cmp dword [edi + esi + 0x14], 8
lea eax, [edi + esi]
jb 0x47accd
mov eax, dword [eax]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x47ad89
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 0x47acc1
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x238]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47aca0
mov bl, byte [ebp - 0x231]
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
test esi, esi
je 0x47ad76
mov edi, dword [ebp + 0xc]
cmp esi, edi
je 0x47ad6d
lea ebx, [ebx]
cmp dword [esi + 0x14], 8
jb 0x47ad50
push dword [esi]
call fcn.004235a4
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 0x47ad40
mov esi, dword [ebp + 8]
push esi
call fcn.004235a4
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042419e
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x47ad20
Function at 0x47b830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ecx
push 0
push 0x47b360
mov eax, dword [eax]
mov dword [0x4aa750], eax
mov eax, dword [ebp + 0xc]
mov dword [0x4aa754], eax
call fcn.00483055
add esp, 0xc
mov al, 1
pop ebp
ret 8

Function at 0x47bc10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a3350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x47bc44
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47bc44
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x47bd2c
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x47bc61
cmp ax, 0x5c
jne 0x47bc63
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x47bc55
cmp edi, ebx
je 0x47bcaf
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.00424600
add esp, 0xc
cmp edi, 0x208
jae 0x47bd3c
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0047bc10
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x47bcd4
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x47bcc4
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x47bcd6
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x47bcf0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x47bd2c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042419e
mov esp, ebp
pop ebp
ret
call fcn.0042de11
int3
Function at 0x47c3f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47c4bd
cmp dword [esi + 4], 0xffffffff
jne 0x47c4bd
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c421
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x47c458
cmp eax, 0x2f
je 0x47c458
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x47c445
mov eax, dword [0x49a9b8]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x47c47e
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47c47e
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047f000
add esp, 0x10
test eax, eax
jne 0x47c49e
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.0047f5b0
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x47caa0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x49a318]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49a318]
mov dword [edx + 8], eax
pop ebp
ret
Function at 0x47f130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a3350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x47f178
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47f173
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x47f1a0
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x47f189
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.00424600
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0042419e
mov esp, ebp
pop ebp
ret

Function at 0x47f1c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x47f1ce
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x47f2a3
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49a318]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49a318]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49a318]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49a318]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49a318]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49a318]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49a318]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49a318]
dec edi
jne 0x47f1e6
pop edi
test esi, esi
je 0x47f2c2
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49a318]
dec esi
jne 0x47f2a7
not eax
pop esi
pop ebp
ret