joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418220
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x29c
mov eax, dword [0x454654]
xor eax, esp
mov dword [esp + 0x294], eax
cmp dword [0x45bc80], 0
jne 0x41828d
lea eax, [esp]
push eax
push 0x202
mov dword [0x45bc80], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
push pe_nt_image_headers32
lea ecx, [esp + 0x194]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x41828d
lea edx, [esp + 0x190]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41828d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [0x45b904], edx
mov ecx, dword [esp + 0x294]
xor ecx, esp
mov eax, esi
call fcn.0042761e
add esp, 0x29c
ret

Function at 0x4182e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esi + 0xc]
push ebx
xor ebx, ebx
push ebp
push edi
cmp eax, ebx
je 0x418316
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jbe 0x418316
mov ebp, dword [esp + 0x10]
push ecx
push eax
push ebp
call fcn.0042d760
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
push eax
call fcn.00427613
add esp, 0x10
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
jmp 0x418338
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
push ebx
push 0x7d014
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jle 0x4183e4
mov ebp, dword [esp + 0x10]
cmp dword [ebp], 1
jne 0x4183e4
cmp dword [ebp + 4], 0x3e9
jne 0x4183e4
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x7d000
ja 0x4183e4
add ebx, 0x14
cmp ebx, edi
jb 0x4183a7
mov ebp, ebx
sub ebp, edi
je 0x4183d9
jmp 0x418370
mov ecx, dword [esp + 0x10]
push 0
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [esi]
lea edx, [edi + ecx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4183e4
push 1
sub ebp, eax
add edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebp, ebp
ja 0x418370
pop edi
pop ebp
mov eax, 1
pop ebx
ret 4
mov eax, dword [esi + 0xc]
sub edi, ebx
test eax, eax
je 0x4183c0
push eax
call fcn.00427613
add esp, 4
mov dword [esi + 0xc], 0
push edi
call fcn.00424394
push edi
add ebx, ebp
push ebx
push eax
mov dword [esi + 0xc], eax
call fcn.0042d760
add esp, 0x10
mov dword [esi + 0x10], edi
pop edi
pop ebp
mov eax, 1
pop ebx
ret 4
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x4189d0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x18
mov eax, dword [0x454654]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
xor ebx, ebx
call edi
push esi
cmp eax, 0xffffffff
jne 0x418a68
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x418a15
movzx ecx, word [eax + 8]
cmp cx, 2
je 0x418a10
cmp cx, 0x17
jne 0x418a15
mov eax, dword [eax + 0xc]
mov ebx, dword [eax]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp]
push 0
push 0
push 0
push 0
push 0x10
lea ecx, [esp + 0x20]
mov word [esp + 0x22], ax
push ecx
mov eax, 2
push edx
mov word [esp + 0x28], ax
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov ecx, dword [esp + 0x1c]
pop edi
neg eax
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.0042761e
add esp, 0x18
ret 8
call edi
mov dword [esp + 0x10], eax
jmp 0x418a1c

Function at 0x4197a0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xcc
mov eax, dword [0x454654]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebp
mov ebp, dword [esp + 0xdc]
push esi
push edi
push 0x32
lea eax, [esp + 0xa4]
push 0
push eax
mov esi, ecx
call fcn.00429470
mov eax, dword [esp + 0xe8]
add esp, 0xc
push esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.00418ba0
lea esi, [esp + 0xc]
call fcn.00418c60
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xa8], eax
xor eax, eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xac], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
xor esi, esi
lea edi, [esp + 0x78]
jmp 0x4198a0
movzx edx, byte [esp + esi + 0xa0]
push edx
push str._.2x
push edi
call fcn.004288ef
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x4198a0
pop edi
lea eax, [esp + 0x74]
mov edx, ebp
mov ecx, eax
pop esi
sub edx, ecx
pop ebp
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4198d0
mov ecx, dword [esp + 0xc8]
xor ecx, esp
mov eax, 1
call fcn.0042761e
add esp, 0xcc
ret
Function at 0x41ad30
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push edi
lea ecx, [esp + 8]
push ecx
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
ja 0x41ad5c
xor eax, eax
pop edi
add esp, 0x10
ret
push ebp
push esi
lea ebp, [edi + 1]
push ebp
call fcn.00424394
push ebp
xor ebp, ebp
mov esi, eax
push ebp
push esi
call fcn.00429470
add esp, 0x10
push esi
push edi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41ada4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x44e4d0
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x41adad
pop esi
pop ebp
xor eax, eax
pop edi
add esp, 0x10
ret
mov eax, dword [esp + 0xc]
mov cx, word [eax + 0xa]
mov dx, word [eax + 8]
mov di, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
movzx eax, di
push eax
movzx edx, dx
movzx eax, cx
mov ecx, dword [esp + 0x20]
push edx
push eax
push 0x44e4d4
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp esi, ebp
je 0x41adee
push esi
call fcn.00427fa3
add esp, 4
pop esi
pop ebp
mov eax, 1
pop edi
add esp, 0x10
ret
Function at 0x41b1a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43eb68
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x454654]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x2c]
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
call fcn.00401750
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x28]
push eax
call fcn.0041ae00
add esp, 0xc
lea esi, [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x18], 0xffffffff
call fcn.004015c0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b22d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x41b5c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0x1000
jae 0x41b5d3
xor eax, eax
jmp 0x41b628
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41b5ed
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x41b5f1
xor eax, eax
jmp 0x41b628
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
je 0x41b60c
xor eax, eax
jmp 0x41b628
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 4]
xor edx, edx
cmp ecx, 0x14c
sete dl
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x41b6c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
je 0x41b6d2
cmp dword [ebp + 0x10], 0
jne 0x41b6d9
xor eax, eax
jmp 0x41b823
cmp dword [ebp + 8], 0
jne 0x41b6e6
xor eax, eax
jmp 0x41b823
mov dword [ebp - 0x14], 0
push 0x449a94
call fcn.0041b470
call fcn.0041b560
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
jne 0x41b730
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041b920
add esp, 0x18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x41b823
push 0x449ab8
push 0x449ac8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41b757
xor eax, eax
jmp 0x41b823
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 8]
test eax, eax
jne 0x41b774
xor eax, eax
jmp 0x41b823
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041b5c0
add esp, 0xc
test eax, eax
jne 0x41b79a
xor eax, eax
jmp 0x41b823
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0xc]
je 0x41b7a6
xor eax, eax
jmp 0x41b823
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
jne 0x41b7ba
mov dword [ebp - 4], 1
cmp dword [0x45bc84], 0
jne 0x41b7d2
mov dword [0x45bc84], 1
call fcn.0041b8b0
cmp dword [ebp - 4], 0
je 0x41b7fd
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041bd10
add esp, 0x18
mov dword [ebp - 0x14], eax
jmp 0x41b820
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041b920
add esp, 0x18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x41b850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041c920
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41b880
cmp dword [ebp - 4], 0
jne 0x41b8a1
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41d110
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push edi
lea eax, [ebp + 0x14]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x10], 0
jle 0x41d146
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0x1c]
add edx, 8
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x50], ecx
mov edx, dword [eax - 4]
mov dword [ebp - 0x4c], edx
jmp 0x41d154
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 0x10], 0
jle 0x41d189
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0x1c]
add eax, 8
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx - 8]
mov dword [ebp - 0x58], edx
mov eax, dword [ecx - 4]
mov dword [ebp - 0x54], eax
jmp 0x41d197
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0xc], edx
cmp dword [ebp + 0x10], 0
jle 0x41d1cc
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 8
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx - 8]
mov dword [ebp - 0x60], eax
mov ecx, dword [edx - 4]
mov dword [ebp - 0x5c], ecx
jmp 0x41d1da
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0x10], 0
jle 0x41d20f
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0x1c]
add edx, 8
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x68], ecx
mov edx, dword [eax - 4]
mov dword [ebp - 0x64], edx
jmp 0x41d21d
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 8
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
sub eax, 8
cdq
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0x10]
cdq
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x48], 0
xor eax, eax
mov word [ebp - 0x44], ax
mov word [ebp - 0x44], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 0x48], esp
and esp, 0xfffffff0
push 0x33
call 0x41d27d
add dword [esp], 5
retf

Function at 0x41d310
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
cmp dword [ebp + 8], 0
je 0x41d330
cmp dword [ebp + 0xc], 0
jne 0x41d32a
cmp dword [ebp + 0x10], 0
je 0x41d330
cmp dword [ebp + 0x14], 0
jne 0x41d332
jmp 0x41d385
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push 0x33
call fcn.0041d345
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d390
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
cmp dword [ebp + 8], 0
je 0x41d3b0
cmp dword [ebp + 0xc], 0
jne 0x41d3aa
cmp dword [ebp + 0x10], 0
je 0x41d3b0
cmp dword [ebp + 0x14], 0
jne 0x41d3b4
xor al, al
jmp 0x41d418
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push 0x33
call fcn.0041d3cb
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41d420
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x33
call fcn.0041d43b
Function at 0x41fcb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x41fcb7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x41fd94
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4490b8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4490b8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4490b8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4490b8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4490b8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4490b8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4490b8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4490b8]
inc ecx
sub edx, 8
sub esi, 1
jne 0x41fcd0
pop edi
test edx, edx
je 0x41fdbb
jmp 0x41fda0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4490b8]
inc ecx
sub edx, 1
jne 0x41fda0
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4490b8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4490b8]
mov dword [edx + 8], ecx
ret

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

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

Function at 0x420510
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x420542
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420538
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x420555
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.0042d760
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x420570
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4205a3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42059d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x4205cf
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4205b5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0042d760
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4205e6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x4205e0
cmp byte [esi + 8], 0
je 0x4205e0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4206d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x420715
cmp byte [esi + 1], 0
je 0x42071d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x420732
cmp byte [esi + 1], 0
je 0x420724
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x42073b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4206ee
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x42073b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x42074f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0042770a
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x42076d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x420881
jmp 0x420790
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x4207a1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x4207ba
mov ebp, 0x404
cmp byte [esi], 0
je 0x4207df
cmp byte [esi + 1], 0
je 0x420881
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4207e2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x42080a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420804
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x420830
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x42081b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0042d760
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x420881
lea eax, [ebp - 3]
test eax, eax
jl 0x42086c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x42085c
cmp byte [eax + ebx + 1], 0x4b
jne 0x42085c
cmp byte [eax + ebx + 2], 5
jne 0x42085c
cmp byte [eax + ebx + 3], 6
je 0x420862
test eax, eax
jge 0x420840
jmp 0x42086c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x420881
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x420784
push ebx
call fcn.0042762d
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x4211b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4211c8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x4211bd
cmp dword [edi + 0x7c], ebx
je 0x4211d7
call fcn.004215a0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00420f20
add esp, 0xc
test eax, eax
je 0x4211fd
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.0042770a
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x42123f
push 0x4000
call fcn.0042770a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x42124b
push ebp
call fcn.0042762d
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x421294
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.00420080
test eax, eax
jne 0x421294
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x4212be
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x4212c7
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x421304
mov cl, byte [esi]
cmp cl, bl
je 0x421304
call fcn.0041fdc0
add esi, 1
jne 0x4212f4
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret