joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x71cf5ee1
mov ecx, 0xa156332
xor ecx, ebx
mov ebx, 0x3fb9a1ae
xor ecx, ebx
mov edx, ecx
mov eax, 0xc0f05aa2
xor edx, eax
xor edx, 0x3f0fa55d
and edx, 0x44639c7d
and ecx, 0xbb9c6382
or ecx, edx
mov ebx, 0xfffffffc
add esp, ebx
xor esi, esi
add esi, esp
mov dword [esi], ecx
pop edx
and edx, ecx
je 0x403f71
sub al, 0xc0
inc eax
add dh, al
add eax, 0x40c033
add al, dh
add eax, 0x40c034
add al, dh
add eax, 0x40c035
add esp, dword [esi - 0x39]
add eax, 0x40c3dc
add byte [eax], al
mov word [0x40c3ec], 1
call fcn.0040285c
mov eax, 0x40c038
mov edx, 0x404398
call fcn.00403c25
mov eax, 0x40c204
mov edx, 0x404398
call fcn.00403c25
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404391
ret

Function at 0x40520c
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
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
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
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4e6e1dce
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5e125fc3
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1001a97
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov eax, dword fs:[0x18]
push dword [ebp + 0x10]
mov esi, eax
call dword [fcn.010010f4]
push eax
mov eax, dword [esi + 0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.010010e4]
test eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
pop esi
je 0x1002e1e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [fcn.010010f0]
xor eax, eax
pop ebp
ret 0xc

Function at 0x1001d05
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0x18]
push dword [ebp + 8]
mov ebx, dword [0x1001100]
mov dword [ebp - 8], esi
call ebx
movzx edi, byte [eax]
lea eax, [edi + 1]
push eax
call dword [fcn.010010f4]
push eax
push 0
push esi
mov dword [ebp - 4], eax
call dword [fcn.010010e4]
test eax, eax
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
je 0x1002e28
push dword [ebp + 8]
push eax
push dword [ebp - 4]
call dword [fcn.0100111c]
test eax, eax
push dword [esi]
mov dword [ebp + 8], eax
jl 0x1002e32
call ebx
inc byte [eax]
push edi
push dword [esi]
call dword [fcn.010010f8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0xf34341
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp], ebp
call 0xf342a2
neg esi
jl 0xf34361
jge 0xf34361
add edx, 0x7a8335a6
call 0xf35b57
jne 0xf343c0
xchg edi, eax
dec cl
jmp 0xf34349
call fcn.00f343a0
insb byte es:[edi], dx
ljmp 0xf8e

Function at 0xf343a0
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ebp, dword [esp + 0x2c]
mov ax, dx
neg bx
js 0xf343c0
lea esi, [edx + ebx]
jmp 0xf343aa
pop dx
mov ebp, eax
lea esp, [esp + 2]
jmp 0xf3438a
lea edi, [esp]
push eax
mov dword [esp], esi
xchg al, dh
pushfd
jmp 0xf343c5
lea esi, [edx + ebx]
jmp 0xf343aa
sub esp, 0xb8
jmp 0xf34562
sub ebx, 0xfae9a507
lea ecx, [esi - 0x724b1d3]
jmp 0xf34408
mov esi, esp
neg dh
ja 0xf34458
lea ecx, [esi - 0x724b1d3]
sub ebx, 0xfae9a507
jmp fcn.00f3440e

Function at 0xf367ea
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf0f27414
jmp 0xf3680a
xchg dword [esp + 8], eax
call fcn.00f3678a
lea esp, [esp + 0x44]
call 0xf367ea
lds ecx, [ecx - 0x72dbdb84]
and al, 0x24
jmp 0xf36820
mov dx, word [esp]
xchg al, cl
setbe dl
mov al, 0x78
jmp 0xf36826
pushfd
jmp 0xf362e1
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp]
mov dl, ah
lea ecx, [edx*4]
bswap esi
jmp 0xf368d5
call fcn.00f3686b
mov dword [eax - 0x2a], 0x7dc740b1
std
insd dword es:[edi], dx
hlt
sub esp, 0xc0
mov esi, esp
sub esp, 8
jns 0xf36881
js 0xf36881
bswap edx
lea esp, [esp + 2]
mov ebx, edi
mov ax, sp
mov cl, 0x16
mov ax, word [esp]
jmp 0xf36920
lea esp, [esp + 4]
not edi
lea eax, [ebx + ebp]
rdtsc
jmp 0xf368e1
lea ebp, [esp]
setge dh
bswap ebx
cpuid
jmp 0xf3689a
push sp
rol ah, cl
jnp 0xf368fb
mov ax, sp
jmp 0xf36906
jno 0xf368bc
jo 0xf368bc
mov ax, sp
xchg ah, dh
jmp 0xf36a05
xchg ah, dh
lea esp, [esp + 2]
jmp 0xf36a09
xchg ch, ah
mov edx, 0xffc16f05
mov cx, word [esp]
pushfd
mov ax, word [esp + 1]
stc
jmp 0xf368f7
lea eax, [edx*4]
jmp 0xf36952
bsf ecx, ebx
bts eax, edx
jmp 0xf36934
dec edi
lea ecx, [ebp*4]
cmp eax, 0xadb34e46
jo 0xf36998
jno 0xf36982
push ebp
fisttp dword [ebx + 0x2e]
invalid
neg dl
jb 0xf3694a
bsf ecx, ebx
bts eax, edx
lea eax, [edx*4]
jmp 0xf36952
neg cx
mov dl, 0xdf
and edx, edi
jmp 0xf3699f
neg cx
mov dl, 0xdf
and edx, edi
jmp 0xf369cc
add edi, 0x1a1a50fd
sete al
mov dx, sp
mov al, cl
mov eax, 0x80d0e32d
setl dl
call 0xf369e8
mov eax, 0x408f8e8d
add byte [eax], al
rdtsc
lea edx, [0xa046ebf6]
bswap ecx
dec eax
jmp 0xf36a32
lea esp, [esp + 2]
ror edi, 0
mov ecx, 0xa23514f5
lea ecx, [0x2981540f]
jmp 0xf3696f
not edx
lea ecx, [esi - 0x4557]
not ecx
xchg dword [esp], eax
rdtsc
jmp 0xf36a7c
xchg dword [esp], eax
shr dx, 6
mov ch, byte [esp]
mov cx, word [esp]
setg ch
lea eax, [eax - 0x46]
jmp 0xf36a1c
inc ah
push edi
mov ch, byte [esp + 2]
mov eax, 0x14417c98
push dword [esp + 4]
ret 8
Function at 0x1092423
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg byte [esp + 0xf], dl
xchg byte [esp + 0xd], dh
xchg word [esp + 0x1f], dx
jmp 0x10924a6
push dword [esp + 0x11]
bsr ecx, eax
bswap edi
xchg dword [esp + 2], edi
mov bh, 0xd1
sub esp, 6
jmp 0x1092440
xchg bp, si
rdtsc
mov dword [esp + 0xd], edx
std
pop dword [esp + 0xe]
dec ebx
jmp 0x1092456

Function at 0x1092610
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ax, di
rdtsc
mov ch, ah
push word [esp + 0xa]
pop edx
add esp, 2
jmp 0x1092629
rdtsc
clc
neg eax
mov bp, 0x3a28
lea esp, [esp]
xchg al, ah
jmp 0x10925d9
jmp 0x10925ef
rcr bx, cl
setbe cl
push word [esp + 5]
pop eax
not cx
pop edx
jmp 0x109263c
shr si, cl
cmc
bswap edx
mov bl, dl
xchg word [esp + 4], bp
pop dword [esp + 4]
jmp 0x1092612
mov al, bh
mov dl, 0x1a
btc edx, edi
bswap ebx
neg ch
cpuid
jmp 0x1092686
mov ax, word [esp + 1]
xchg word [esp], dx
cld
mov cl, al
cpuid
pop si
jmp 0x1092670

Function at 0x1092698
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop eax
jmp 0x1092707
rcl si, cl
sub esp, 0x16
mov edi, eax
lea esi, [edx + ebx]
bswap edi
mov dx, bp
jmp fcn.010926de

Function at 0x1092b0e
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg word [esp + 7], si
add ah, bh
call 0x1092b0e
jnp 0xd30091ef
mov ebx, dword [esp]
mov di, 0x1e11
jmp 0x1092b43
sub esp, 0xb
push word [esp + 0xa]
mov edi, eax
lea ebp, [edx - 0x5fb63ea4]
add esp, 0
cpuid
jmp 0x1092b01
push dword [esp + 4]
lea esi, [esp + edx]
pushfd
lea edx, [edx - 0x36ac484d]
xchg ch, ah
jmp 0x1092b81
mov esi, dword [esp + 0x10]
push dword [esp + 7]
lea esp, [esp + 0x43]
neg dl
jmp 0x1092b2c
push di
pop word [esp + 0xa]
rol di, cl
rdtsc
pushfd
setp ah
jmp 0x1092bb0
bsf ecx, ecx
xchg byte [esp + 0xf], ah
lea esp, [esp + 0xd]
sub esp, 6
mov word [esp + 0xf], bp
mov dword [esp + 7], edx
jmp 0x1092b69
lea esp, [esp + 0xe]
bswap edi
xchg ebx, edi
dec ebx
pop si
cpuid
jmp 0x1092bd3
stc
xchg dword [esp + 6], edi
dec si
lea eax, [ecx + ebp]
xchg byte [esp + 2], ch
jmp 0x1092b9a

Function at 0x1092d32
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp]
lea ebp, [esp - 0xa8]
ror dh, 3
neg cl
jmp 0x1092d53
inc ah
mov esi, 0x53a15a07
mov ebx, 0x4f4ad0fa
add esp, 4
xchg ebp, eax
bswap ebp
jmp 0x1092cf2
rdtsc
or cx, si
xchg dword [esp + 1], edx
jmp 0x1092d08
bsf dx, si
xchg ch, ah
mov dword [esp + 1], esi
xchg dword [esp + 2], edi
jmp 0x1092d9c
pop dword [esp]
sub esp, 8
mov byte [esp + 0xa], bh
mov bl, byte [esp + 9]
mov cl, dh
lea edx, [edi + 0xc7ca]
jmp 0x1092d3d
mov di, word [esp + 8]
pop word [esp + 5]
mov dword [esp + 4], eax
jmp 0x1093ad2
mov dx, word [esp + 3]
lea ebp, [eax - 0x78]
not dx
mov ch, 0xd
mov word [esp + 6], di
mov word [esp + 8], sp
jmp 0x1092d86
rdtsc
add esp, 5
mov esi, dword [esp]
bswap ecx
xchg word [esp + 6], bx
cpuid
not bp
not cx
xchg word [esp + 3], di
mov byte [esp + 4], cl
jmp 0x1093921
Function at 0x1093be2
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ecx, edi
mov si, bx
mov ebp, 0x92ed12a8
mov edi, 0xb31cf4ef
jmp 0x1093ab3
jmp 0x1093a9b
lea ecx, [eax + esi]
lea ebx, [esi + 0x2c86]
xchg ah, bl
mov cl, byte [esp + 3]
std
mov cl, 0xa8
jmp 0x1093b03
xchg bl, ch
mov dword [esp], esp
call 0x1093aed
btr edi, edi
shr dl, cl
inc edx
cpuid
mov cx, bp
bswap edx
jmp 0x1093b86
pop word [esp]
pop word [esp]
rdtsc
mov bp, cx
mov ebp, dword [esp]
jmp 0x1093b60
mov ch, 0x56
add esp, 0
cpuid
bswap eax
sub esp, 2
xchg bx, dx
jmp 0x1093b39
xor ecx, eax
neg bp
xchg word [esp], cx
xchg edx, ebp
xchg word [esp + 2], di
pushal
jmp 0x1093bb9
rol bh, 5
lea esi, [edi*4]
pop word [esp + 5]
pop word [esp + 2]
xchg dword [esp], ecx
mov esi, dword [esp + 5]
jmp 0x1093b4f
ror esi, cl
sub esp, 0xf
push dword [esp + 0x30]
mov al, cl
mov dword [esp + 0x25], eax
jmp 0x1093bf8
mov word [esp + 0x22], dx
mov dword [esp + 0x16], esp
mov word [esp + 7], di
lea edx, [edx + ebx]
bswap esi
xchg bp, ax
jmp 0x1093ba3
add esp, 0x16
neg ebp
mov dh, 0xe3
xchg si, cx
bswap edi
call 0x1093be2
shl byte [esi + 0x4d], 0xeb
and eax, 0xf2970782
add ebp, edi
cmp byte [eax + 0x48b8492e], bh
adc eax, 0x691e3784
mov byte [edi + 0xf1a245c], al
mov byte [0x1024648d], al
xchg dword [esp + 0x1a], ebx
cpuid
lea esp, [esp + 0x10]
std
rcl edi, 0x1a
add esp, 0x11
jmp 0x1093bd0

Function at 0x1093e5e
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dh, cl
mov bl, byte [esp + 9]
rdtsc
pushal
xchg cl, dh
call fcn.01093dab
jb 0x1093dce
invalid
imul ecx, dword [esi], 0xfffffffd
jl 0x1093e30
fdiv qword [edx + 0x15]
in al, 0x63
test eax, 0x2bd8b929
leave
enter 0x5e6b, 0xf
xor dword [edi - 0x7cf7dbac], eax
les ecx, [edx + edx*8]
retf 0xca10
pop esi
rdtsc
xchg dword [esp + 8], edx
add esp, 0xc
ror dl, cl
adc dl, cl
jmp 0x1093dc1
out 0x11, al
mov word [esp + 5], bx
mov ebp, edx
not esi
sub esp, 0x12
xchg bp, dx
shr bx, cl
jmp 0x1093de5
jmp 0x1093e1d
xchg byte [esp], dl
xchg byte [esp + 4], bh
jmp 0x1093e1f
Function at 0x109431c
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp]
add esp, 0
mov al, byte [esp + 1]
mov al, 0x80
cld
inc ch
jmp 0x10942bd
xchg word [esp + 5], bx
rdtsc
xchg word [esp], ax
pop ecx
not bl
dec bp
jmp 0x10942d3
pop word [esp + 4]
jmp 0x10942ef

Function at 0x10943ec
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsf di, bp
pop word [esp]
xchg word [esp + 1], cx
cpuid
jmp 0x109440d

Function at 0x10948e2
Capabilities:
Check for peb beingdebugged flag
Encode data using xor
Packed with generic packer
Parse pe header

Disassembly:
call fcn.01094068
pushfd
mov dword [esp + 0x28], ebp
push ebp
push word [esp]
jmp 0x1094b59
mov eax, dword [eax + 8]
push eax
jmp 0x1094063
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x10949c4
lea esp, [esp + 2]
mov dword [esp + 0x40], edi
lea esp, [esp + 0x40]
mov eax, dword fs:[0x30]
jmp 0x1094a29
lea esp, [esp + 5]
lea esp, [esp + 1]
mov dword [esp + 0x24], esi
pushal
mov byte [esp + 0xe], ch
push word [esp + 0x19]
jmp 0x1094a6c
Function at 0x4029c8
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 0x402a05
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 0x402a25
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ae8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c28
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.00404878
test esi, esi
jne 0x402c5e
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.00404968
jmp 0x402c7c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402b3c
mov edi, eax
test esi, esi
je 0x402c7c
cmp dword [ebx], 0
je 0x402c7c
dec esi
jmp 0x402c65
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403914
Capabilities:
Query or enumerate registry value

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

Function at 0x404678
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e504c], 0
je 0x4046d9
cmp word [0x4e5220], 0xd7b2
jne 0x4046a1
cmp dword [0x4e5228], 0
jbe 0x4046a1
mov eax, 0x4e521c
call dword [0x4e5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4dc094
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 0x404700
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4dc034], 0
jne 0x4046f5
push 0
push 0x4dc08c
push 0x4dc094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40482c
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.004027b4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4047f4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40d7c0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d638
mov eax, dword [0x4e4900]
cmp byte [eax], 0
je 0x40d83c
mov eax, dword [0x4e4510]
call fcn.00403040
call fcn.0040291c
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.00409f08
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 0x40d884
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d872
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4e446c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e5668]
call fcn.00405d48
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 0x40e144
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 0x40e21a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404910
lea eax, [ebp - 8]
call fcn.00404d88
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d38
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e204
mov eax, ebx
call fcn.004027b4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e1fd
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.00404d38
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e1e7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e22c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e1e7
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 0x40e204
mov eax, dword [ebp - 0x10]
call fcn.004027d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e221
lea eax, [ebp - 8]
call fcn.00404878
ret

Function at 0x40e910
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 0x40e974
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.00404ae8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004093a0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e97b
lea eax, [ebp - 0xc]
call fcn.00404878
ret