joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44eb40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x44ece1
sub esp, 0x48
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x4c]
mov edx, dword [ecx + 0x18]
mov ebx, dword [ecx + 0x78]
add ebx, 1
mov edx, dword [edx + 0x54]
mov ebp, dword [ecx + 0x7c]
mov dword [ecx + 0x78], ebx
adc ebp, 0
mov dword [ecx + 0x7c], ebp
mov ebx, edx
mov ebp, dword [edx + 0xb70]
cmp ecx, ebp
jne 0x44ec15
mov dword [esp + 0x44], ecx
lea edi, [esp + 0x2c]
xor eax, eax
call fcn.0045a35a
mov ecx, dword [esp + 0x44]
mov ebx, dword [ecx + 0x54]
mov ebp, dword [ecx + 0x50]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
mov ebx, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
mov eax, dword [edx + 0xb74]
cmp eax, 3
jae 0x44ecd6
lea ecx, [0xcc7794]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov byte [esp], 0x29
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.0044dba0
add esp, 0x48
ret
cmp dword [ecx + 0x80], ebx
jne 0x44ec66
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov eax, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp], 0x26
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0044dba0
jmp 0x44ec11
mov dword [ecx + 0x80], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov eax, dword [ecx + 0x50]
mov edx, dword [ecx + 0x54]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov byte [esp], 0xe
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.0044dba0
jmp 0x44ec11
mov ecx, 3
call fcn.0045a130
nop
call fcn.00458870
jmp fcn.0044eb40
Function at 0x44f220
Capabilities:
Reference http user-agent string

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x44f3ac
sub esp, 0x54
lea edi, [esp + 0x28]
xor eax, eax
call fcn.0045a355
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx + 0x14]
jmp 0x44f254
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x44f350
mov dword [esp + 0x24], ecx
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x44f2c3
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
mov ebx, dword [edx]
call ebx
movzx eax, byte [esp + 8]
test al, al
jne 0x44f24d
add esp, 0x54
ret
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov dword [esp], ecx
call fcn.004496c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x44f354
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x24]
mov ebp, dword [ebx]
test ebp, ebp
jne 0x44f34a
xor edx, edx
mov dword [esp + 0x48], edx
mov ebp, dword [ecx + 8]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], 0
cmp ebp, 0x80000000
jne 0x44f297
lea edx, [esp + 0x28]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov byte [esp + 0xc], 1
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
call fcn.00450a30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov ebx, dword [esp + 0x24]
jmp 0x44f297
nop
lea edx, [ebx + 0x28]
jmp 0x44f2f5
add esp, 0x54
ret
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
call fcn.00432ad0
lea eax, [0x874f87]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.00433370
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00433240
call fcn.00432cf0
call fcn.00432b40
lea eax, [0x869e18]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00431250
nop
call fcn.00458870
jmp fcn.0044f220
Function at 0x4517f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45188f
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.0045a357
lea ecx, [0x458170]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.00458750
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.00458870
jmp fcn.004517f0
Function at 0x459d20
Capabilities:
Encrypt data using aes via x86 extensions
Hash data using murmur3

Disassembly:
cmp byte [0xcc77e5], 0
je 0x459d3a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x459d60
jmp fcn.00407770
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0xcc7c00]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x459d9b
je 0x459dea
cmp ebx, 0x20
jbe 0x459df0
cmp ebx, 0x40
jbe 0x459e2e
jmp 0x459ebf
test ebx, ebx
je 0x459de0
add eax, 0x10
test ax, 0xff0
je 0x459dcc
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x9c4ac0]
aesenc xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x9c4bc0]
jmp 0x459db8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x459db8
pxor xmm1, xmmword [0xcc7c10]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
aesenc xmm2, xmm0
aesenc xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xcc7c10]
pxor xmm2, xmmword [0xcc7c20]
pxor xmm3, xmmword [0xcc7c30]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xcc7c10]
pxor xmm2, xmmword [0xcc7c20]
pxor xmm3, xmmword [0xcc7c30]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x459f1e
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
Function at 0x459fe0
Capabilities:
Hash data using murmur3

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x407a30
mov eax, dword [0xcc7b30]
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov ebx, dword [esp + 8]
lea eax, [ebx + eax*8]
xor edx, eax
imul eax, edx, 0xbce2d621
rol eax, 0xf
imul eax, eax, 0xc70f85e1
xor ecx, eax
imul eax, ecx, 0xbce2d621
rol eax, 0xf
imul eax, eax, 0xc70f85e1
mov ecx, eax
shr eax, 0x11
xor eax, ecx
imul eax, eax, 0x319bca41
mov ecx, eax
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0x8b421a21
mov ecx, eax
shr eax, 0x10
xor eax, ecx
mov dword [esp + 0xc], eax
ret
call fcn.00458870
jmp 0x4079c0
cmp byte [0xcc77e5], 0
je 0x45a01b
mov eax, dword [esp + 4]
movq xmm0, qword [eax]
pinsrd xmm0, dword [esp + 8], 2
aesenc xmm0, xmmword [0xcc7c00]
aesenc xmm0, xmmword [0xcc7c10]
aesenc xmm0, xmmword [0xcc7c20]
movd dword [esp + 0xc], xmm0
ret
jmp 0x4079c0

Function at 0x45ae90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword fs:[0x14]
mov edx, esp
sub esp, 0x1cc
mov dword [esp], esp
mov dword [esp + 4], 0x1cc
call fcn.0045a880
lea ecx, [esp + 0x30]
mov dword fs:[0x14], ecx
mov ebx, esp
sub esp, 0xd8
mov dword [ecx], esp
mov dword [ebx], esp
mov dword [esp], esp
mov dword [esp + 4], 0xd8
call fcn.0045a880
lea ebx, [esp + 0xd8]
mov dword [esp + 0x18], ebx
lea ecx, [esp - 0x8000]
mov dword [esp], ecx
add ecx, 0xb80
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
push eax
push dword [ebp + 0x10]
call dword [ebp + 8]
pop ecx
pop eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov esp, dword [ecx + 4]
pop dword fs:[0x14]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x45af90
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov eax, esp
mov dword [edx + 4], eax
sub eax, 0x10000
mov dword [edx], eax
add eax, 0xb80
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
lea esi, [ecx + 0x30]
mov dword fs:[0x14], esi
mov dword [edx + 0x18], ecx
mov dword [esi], edx
cld
call fcn.00459c70
call fcn.00435b00
ret
Function at 0x4a6210
Capabilities:
Hash data using fnv

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a624c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
xor ebx, ebx
jmp 0x4a6243
lea ebp, [ebx + 1]
imul edx, edx, 0x1000193
movzx esi, byte [ecx + ebx]
xor edx, esi
mov ebx, ebp
cmp ebx, eax
jl 0x4a6232
mov dword [esp + 0x14], edx
ret
call fcn.00458870
jmp fcn.004a6210
Function at 0x4de5f0
Capabilities:
Reference http user-agent string

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4de7ed
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea ecx, [0x867661]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
call fcn.004ddc90
movzx eax, byte [esp + 0xc]
test al, al
je 0x4de7ca
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea ecx, [0x867661]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov byte [esp + 0xc], 1
call fcn.004ddbc0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea ecx, [0x8677b6]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.004ddc90
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4de784
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea ecx, [0x8677de]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.004ddc90
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4de73e
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea ecx, [0x8677fc]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.004ddc90
movzx eax, byte [esp + 0xc]
test al, al
je 0x4de71b
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea eax, [0x8677fc]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov byte [esp + 0xc], 1
call fcn.004ddbc0
mov dword [esp + 0x1c], 0
lea eax, [0x8706aa]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x17
mov byte [esp + 0x28], 1
add esp, 0x14
ret
mov dword [esp + 0x1c], 0
lea eax, [0x8691d5]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 9
mov byte [esp + 0x28], 1
add esp, 0x14
ret
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea eax, [0x8677de]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov byte [esp + 0xc], 1
call fcn.004ddbc0
mov dword [esp + 0x1c], 0
lea eax, [0x8691d5]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 9
mov byte [esp + 0x28], 1
add esp, 0x14
ret
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea eax, [0x8677b6]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov byte [esp + 0xc], 1
call fcn.004ddbc0
mov dword [esp + 0x1c], 0
lea eax, [0x86789d]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 3
mov byte [esp + 0x28], 1
add esp, 0x14
ret
mov dword [esp + 0x1c], 0
lea eax, [0x869fe8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0xb
mov byte [esp + 0x28], 0
add esp, 0x14
ret
call fcn.00458870
jmp fcn.004de5f0
Function at 0x6b0950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6b0b6c
sub esp, 0x5c
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
jmp 0x6b0a77
lea edx, [ecx + edi*8]
mov ebx, dword [edx + 4]
mov edx, dword [edx]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov ebx, dword [0xcb51f8]
mov edx, dword [0xcb51fc]
mov eax, dword [0xcb5200]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
call fcn.006b0d60
mov eax, dword [esp + 0x50]
inc eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x64]
mov ebp, edi
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x88]
lea ebx, [edx - 1]
mov edi, dword [esp + 0x50]
cmp edi, ebx
jge 0x6b0a96
cmp edi, edx
jb 0x6b099e
jmp 0x6b0b62
cmp ebx, edx
jae 0x6b0b59
lea ecx, [ecx + edx*8 - 8]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
call fcn.006b0d60
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
add esp, 0x5c
ret
mov eax, ebx
mov ecx, edx
call fcn.0045a130
mov eax, edi
mov ecx, edx
call fcn.0045a130
nop
call fcn.00458870
jmp fcn.006b0950
Function at 0x6b0b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6b0d51
sub esp, 0x6c
lea ecx, [0x9c1a20]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xc], ecx
mov ecx, dword [0xcc7b40]
test ecx, ecx
jne 0x6b0d3d
mov eax, dword [esp + 0x80]
mov dword [edx + 0x10], eax
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x50], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x58], eax
mov ebx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.006b55c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
movzx ebx, byte [esp + 0x18]
test bl, bl
je 0x6b0cb4
mov ebx, dword [esp + 0x70]
mov dword [esp], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x40], eax
call fcn.006b19a0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
add esp, 0x6c
ret
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
call fcn.004087a0
mov eax, dword [esp + 8]
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea ecx, [0x7f33a0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
lea ecx, [0x873c9b]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1c
lea ecx, [esp + 0x64]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call fcn.006ad1a0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
jmp 0x6b0bf7
lea edi, [edx + 0x10]
mov eax, dword [esp + 0x80]
call fcn.0045a0b0
jmp 0x6b0bbe
call fcn.00458870
jmp fcn.006b0b80
Function at 0x402994
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029d1
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029f1
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404a08
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b58
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404798
test esi, esi
jne 0x402b8e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404888
jmp 0x402bac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a6c
mov edi, eax
test esi, esi
je 0x402bac
cmp dword [ebx], 0
je 0x402bac
dec esi
jmp 0x402b95
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40326c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x490008], 0x8088405
inc edx
mov dword [ebx + 0x490008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403834
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x490024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038ac
xor eax, eax
push ebp
push 0x4038a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4038e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4038ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x490024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x490024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404598
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49404c], 0
je 0x4045f9
cmp word [0x494220], 0xd7b2
jne 0x4045c1
cmp dword [0x494228], 0
jbe 0x4045c1
mov eax, 0x49421c
call dword [0x494238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x490094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404620
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x490034], 0
jne 0x404615
push 0
push 0x49008c
push 0x490094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40474c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027ac
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404714
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc