joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460581
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00460731
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x46067f
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x460622
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x460665
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x460639
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x460654
test al, 0x40
je 0x46064b
mov ecx, dword [edi + 0x20]
jmp 0x460652
test al, 0x80
je 0x460665
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x460665
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4605f1
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4aa820
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x665590]
xor edx, edx
cmp eax, edx
jne 0x4aa846
xor eax, eax
mov byte [eax + 0x665490], al
inc eax
cmp eax, 0x100
jl 0x4aa82e
mov dword [0x665590], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x665490
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4aa8d7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4aa8aa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4aa878
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4aa950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4aa9a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4aa98a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b13e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4b1578
cmp ebp, ebx
jle 0x4b1578
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x4b143e
dec eax
or eax, 0xfffffff8
inc eax
je 0x4b1445
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x4b1454
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4b145b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00519d6b
add esp, 4
cmp eax, ebx
je 0x4b147c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00519d6b
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x4b156e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4b1555
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4b1541
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4b1536
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x4b1544
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4b1544
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4b14e0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x4b14d1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x4bf3d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52ad08
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4bf409
inc eax
mov dword [esi + 0x10], eax
jmp 0x4bf51c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4bf41d
mov eax, 0xffffffc7
jmp 0x4bf51e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4bf42e
cmp dword [esi + 8], eax
jne 0x4bf41d
cmp dword [esi + 8], eax
jne 0x4bf447
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4bf447
mov eax, 0xffffffc7
jmp 0x4bf51e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4bf45b
push eax
mov ecx, ebx
call fcn.004bec00
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0048ab80
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4bf48c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0048aba0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004be370
test eax, eax
mov dword [esp + 0x38], eax
je 0x4bf4bf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x62efb0
call fcn.0048ad80
mov eax, dword [esp + 0x38]
jmp 0x4bf51e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004bf230
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4bf503
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004bf250
mov esi, eax
test esi, esi
jne 0x4bf533
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004bf230
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4bf4d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x62efb0
call fcn.0048ad80
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x62efb0
call fcn.0048ad80
mov eax, esi
jmp 0x4bf51e
Function at 0x4d9d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52bb60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d9920
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004d99a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004d99a0
lea ecx, [esi + 0xc]
call fcn.00519fb5
lea ecx, [esi + 0x10]
call fcn.00519fb5
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004daf30
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004daf30
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004daf30
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call int.0051a02a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call int.0051a02a
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4da620
Capabilities:
Access peb ldr_data

Disassembly:
nop
nop
nop
nop
nop
nop
nop
nop
push 0xffffffffffffffff
push 0x52bd46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0xc]
mov dword [esp + 0x24], edi
mov dword [edi + 0x34], 0xffffffff
call fcn.00518e30
push 0xffffffffffffffff
lea ecx, [edi + 0x20]
push ebx
call fcn.00518e30
lea ecx, [edi + 0x38]
mov dword [esp + 0x14], ecx
call fcn.00519fb5
lea eax, [esp + 0x30]
mov byte [esp + 0x30], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x24], ebx
call fcn.007a1d90
jp 0x4da618
inc esp
and al, 0x20
call fcn.007a1d90
fimul word [ebx - 0x74dfdbac]
dec edi
or byte [ebx], ch
ret 0xc13b

Function at 0x4e5ee7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52c6a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.00518c4d
mov eax, dword [0x6543c4]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x633dbc
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x4e5f44
push ebx
call fcn.007a3804
lea eax, [eax + 0x50]
call fcn.00519d6b
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call fcn.007ab79f
ljmp 0xc883
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4f11f4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x4f13ad
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x4f1326
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x4f1326
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x4f130d
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x4f130d
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.004f2460
mov ebp, eax
test ebp, ebp
je 0x4f1305
push ebp
mov ecx, esi
call fcn.004f3820
test eax, eax
je 0x4f1305
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x4f1305
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4f12c6
xor eax, eax
jmp 0x4f12ce
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.004f41c0
inc ebx
xor ebp, ebp
jmp 0x4f1257
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x4f1230
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.004f2770
test eax, eax
pop ebx
je 0x4f13ad
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.004f2460
mov edi, eax
cmp edi, ebp
je 0x4f13ad
push edi
mov ecx, esi
call fcn.004f3820
test eax, eax
je 0x4f13ad
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.004f29b0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.004f2a20
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.004f41c0
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x6d900e
Capabilities:
Encode data using xor

Disassembly:
dec dword [edx - 0x8d71421]
invalid
mov cl, 0x6a
bswap edx
call 0x6d904c
sub al, 0xaf
xor eax, 0x2c000000
scasd eax, dword es:[edi]
aas
pop edx
test eax, 0x56c04a09
xor eax, eax
add esi, esp
jge 0x6d9013
je 0x6d8faf
inc esi
int3

Function at 0x6e4dd7
Capabilities:
Encode data using xor

Disassembly:
call fcn.006e4ddc
dec esi
fimul word [ebx + ebp - 0x1a]
and bh, byte [ebx + esi - 0xeca395d]
mov byte [0x3ccdaa34], al
clc
mov eax, dword [0x7e20e9e0]
invalid

Function at 0x80994d
Capabilities:
Parse pe header

Disassembly:
push eax
jmp 0x804125
call fcn.0080412a
call 0x80805a
jmp 0x809619
movzx ebx, word [eax + 0x3c]
jmp 0x809601
and al, 1
sbb al, 0x8a
dec esp
and al, 0x21
add ebx, eax
cmp word [ebx], 0x4550
jmp 0x80963c
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
jmp 0x809666
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x808055
je 0x803cce
jne 0x80966c
mov word [edx + ebx*4], es
std
or al, 0xd8
pop ss
sahf
or al, 0x6b
cmpsb byte [esi], byte es:[edi]
dec ecx
and eax, 0xab5839a9
inc edi
lds ecx, [edx - 0x28]
mov edi, 0x8f05a84a
pop ds
jp 0x8095ea
jl 0x8095f4
add al, 0xc7
xchg esi, eax
je 0x8080e4
sub eax, 0x10000
jmp 0x80961d
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x809631
pop dword [esp]
mov dword [esp + 0x60], edi
lea esp, [esp + 0x60]
mov eax, dword fs:[0x30]
jmp 0x8096b7
mov dword [esp], eax
pop word [esp + 1]
push dword [esp + 1]
push word [esp]
pop word [esp + 3]
mov byte [esp + 6], al
jmp 0x8096d2
lea esp, [esp]
mov dword [esp], ebp
push cx
mov byte [esp], al
mov dword [esp], ebp
jmp 0x809869
Function at 0x402e1c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e75
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cb8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cb8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e5f
inc ebx
jmp 0x402e48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e7c
lea eax, [ebp - 8]
call fcn.00404648
ret

Function at 0x402e84
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404648
test esi, esi
jne 0x402ebb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404738
jmp 0x402edc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cb8
mov dword [esp], eax
test esi, esi
je 0x402edc
cmp dword [ebx], 0
je 0x402edc
dec esi
jmp 0x402ec3
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x4036ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a4024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403744
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403724
xor eax, eax
push ebp
push 0x40371d
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 0x403760
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 0x403724
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a4024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a4024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a704c], 0
je 0x404505
cmp word [0x4a7220], 0xd7b2
jne 0x4044cd
cmp dword [0x4a7228], 0
jbe 0x4044cd
mov eax, 0x4a721c
call dword [0x4a7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a4070
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 0x40452c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a4034], 0
jne 0x404521
push 0
push 0x4a4068
push 0x4a4070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4065e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406646
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004048b8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031f8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406630
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40664d
lea eax, [ebp - 0x10]
call fcn.00404648
ret

Function at 0x40927c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b24
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409295
test al, 0x10
jne 0x409299
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409388
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b24
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40939c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404b24
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4093be
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c6b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c6e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404738
jmp 0x40c6f2
mov eax, ebx
mov edx, esi
call fcn.0040469c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c6fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c71d
mov al, byte [esp]
jmp 0x40c71f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cdb4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc1c
mov eax, dword [0x4a6634]
cmp byte [eax], 0
je 0x40ce30
mov eax, dword [0x4a63a0]
call fcn.0040300c
call fcn.00402be4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409704
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ce78
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce66
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a633c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a7668]
call fcn.00405a4c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40d740
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d816
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004046e0
lea eax, [ebp - 8]
call fcn.00404b74
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d800
mov eax, ebx
call fcn.00402a58
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d7f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d7e3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d828
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d7e3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d800
mov eax, dword [ebp - 0x10]
call fcn.00402a88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d81d
lea eax, [ebp - 8]
call fcn.00404648
ret

Function at 0x40de30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40de94
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004048b8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408edc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de9b
lea eax, [ebp - 0xc]
call fcn.00404648
ret