joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f810
Capabilities:
Contain obfuscated stackstrings
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0
call fcn.0041eea0
mov ecx, dword [0x4324b4]
jmp fcn.00418d30

Function at 0x421400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4275c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov dword [esp + 0x18], ecx
push ebp
push edi
lea ecx, [esp + 0xc]
call fcn.004231a8
mov eax, dword [0x4324c0]
lea ecx, [esp + 0x1c]
add eax, 0x120
xor ebp, ebp
push eax
push 0x4317f0
push ecx
mov dword [esp + 0x38], ebp
call fcn.00423166
push 0x4322f8
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x38], 1
call fcn.00423160
mov ecx, dword [0x4324c0]
lea edx, [esp + 0x14]
add ecx, 0x1e4
mov byte [esp + 0x2c], 2
push ecx
push eax
push edx
call fcn.00423238
push 0x4322e8
push eax
lea eax, [esp + 0x18]
mov bl, 3
push eax
mov byte [esp + 0x38], bl
call fcn.00423160
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 4
call fcn.004231c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call fcn.00423046
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.00423046
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.00423046
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call fcn.00423046
mov ecx, dword [0x4324b4]
mov edi, dword [ecx + 0x110]
cmp edi, ebp
jle 0x421560
push esi
xor ebx, ebx
mov esi, 0x124
cmp esi, 0x144
jge 0x42155f
mov edx, dword [0x4324c0]
push 0
push 0
push 0xf0
mov eax, dword [esi + edx]
mov eax, dword [eax + 0x20]
push eax
call dword [0x428728]
cmp eax, 1
jne 0x421554
mov ecx, dword [0x4324b4]
mov edx, dword [ecx + 0x10c]
lea ecx, [esp + 0x20]
lea eax, [edx + ebx + 4]
push eax
push 0x4322e4
push ecx
call fcn.00423166
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 5
call fcn.004231a2
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 0
call fcn.00423046
inc ebp
add esi, 4
add ebx, 0xc
cmp ebp, edi
jl 0x4214ee
pop esi
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
call fcn.0042313c
push 1
push 0
mov ecx, eax
mov byte [esp + 0x34], 6
call fcn.00423058
push eax
call fcn.00412e60
add esp, 8
push eax
mov eax, dword [esp + 0x24]
lea ecx, [eax + 0x60]
call fcn.00423136
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call fcn.00423046
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00423046
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x422090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42772b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x42b0c0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x422120
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4220e7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [0x428048]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x422111
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.004234c0
jmp 0x422126
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.004234c0
jmp 0x422126
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x429148
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.004231e4
mov ecx, esi
mov dword [edi], 0x4288c4
mov dword [esp + 0x1c], 0xffffffff
call fcn.00423490
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x417a10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x50
test eax, eax
push esi
je 0x417a36
mov eax, dword [0x4baa80]
test eax, eax
je 0x417a2c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
push ebx
push edi
lea eax, [esp + 0xc]
push 0x50
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x4ba070
or ecx, 0xffffffff
xor eax, eax
Function at 0x425a7f
Capabilities:
Encode data using xor

Disassembly:
cmp dword [edx + 0x23], ebp
lcall 0x4bc5, 0x1307f037
pop es
adc eax, ebp
dec ebx
pop es
adc eax, ebp
dec ebx
sub dh, dl
mov eax, 0x4a32d545
pop esi
xor dl, cl
nop
test al, 0x5f
add ebx, dword [esi + 0x8aca39d]
add al, 0x83
pop ebx
mov al, 2
test eax, 0x3f8b55b2
ficom word [ecx + 0x5a]
bnd jno 0x425a79
inc ecx
fisubr dword [esi + 0x68]
push ds
inc eax
xchg edx, eax
adc byte [esi - 0x5f117dd6], ah
adc ah, dh
cmpsb byte [esi], byte es:[edi]
and dword [ebp + 0x442ab6d1], ecx
sub ah, byte [ecx - 0x3d]
cmp byte [edx + ebx*4], dl
adc byte [esi + 0x1d], bl
or edx, dword [eax + ebp*8 - 0x4df5ee10]
in eax, 6
mov eax, dword [edi]
mov ch, 0xce
add byte [ebp + 0x5f], dl
invalid
Function at 0x43bd6c
Capabilities:
Encode data using xor

Disassembly:
mov ebp, 0x99f81e72
movsd dword es:[edi], dword [esi]
inc ebx
jg 0x43bd64
push cs
outsd dx, dword [esi]
sbb eax, 0xad733829
xchg dword [eax + 3], eax
jae 0x43bd58
test al, 0x8f
int3
xchg esp, eax
cdq
xor byte [ebx - 0x26], bl
xlatb
sbb edx, ecx
mov eax, dword [0x202b6c8]
add al, byte [edx]
dec eax
cmp eax, 0x4b82ecf
or dword [ebp - 0x42], ebp
mov esi, 0x85387c80
push ecx
insd dword es:[edi], dx
mov esi, 0x387c80be
test dword [ebp + 0x51], esp
cmp byte [eax + edi - 0x7b], 0x65
push ecx
xor ecx, dword ss:[ebx + 0x2f8f7ac7]
mov eax, edi
jp 0x43bcff
das
inc edx
inc esi
push 0x82db6ea2
js 0x43bd4d
popfd
loopne 0x43bd61
dec ebx
push 0x1d4f89fc
mov dword [edi + 0x1d], ecx
salc
adc byte [eax - 0x6f0bda92], dh
js 0x43be04
xchg edx, eax
invalid
dec esp
fadd dword [ebx - 0x35]
test esi, esp
salc
pop ebp
xor dword [eax], ebp
add ebp, dword [ebx]
loopne 0x43bd80
mov al, 0xfe
xor cl, dl
stosb byte es:[edi], al
dec edi
sal dword [0xb28304ef], cl
sar dword [ecx], 1
sal ebx, cl
mov eax, 0x71d9dbd6
test al, 0x12
movsb byte es:[edi], byte [esi]
int1
mov eax, 0x1bfddb10
pop ss
pop ebx
pushal
cmp eax, 0x8b435836
mul eax
dec eax
push ebp
xchg ebx, eax
inc ebp
and byte [esi], bh
mov ah, 0x5b
mov cl, 0xca
pop eax
pushal
sbb al, 0xf8
pop es
int3
and edx, dword [edx + 0x33]
test eax, 0xcabd14a0
xchg esi, eax
add eax, 0x93800b9
mov dword es:[0xc3e7bf7b], eax
sub edi, dword [esi]
pushal
xlatb
cmp edi, 0xfffffff7
out dx, eax
jg 0x43bdb4
cli
jnp 0x43be1f
or byte [ebx - 0x6a], 0x27
arpl si, si
fldcw word [ebx]
jmp 0x9cf27d08

Function at 0x43d92e
Capabilities:
Encode data using xor

Disassembly:
jg 0x43d93b
loope 0x43d8dd
mov byte [0x98449f6e], al
xor eax, 0xae0d8fb0
sbb eax, 0x10b2d166
sbb eax, 0x10b2d166
invalid
Function at 0x4541ae
Capabilities:
Encode data using xor

Disassembly:
push ebx
adc eax, 0x2d76e52d
inc esi
mov al, 0xc
pop es
xor eax, 0x3d146375
in eax, dx
mov al, byte [0x1db6d646]
inc edi
and al, byte [ecx - 0x7a512c5e]
shl ch, 1
sub ebp, dword [edi + 6]
lahf
mov esi, esi
cmp esi, dword [ecx + 0x1ac812b4]
mov ebx, 0xfc02b7dc
jbe 0x454209
and eax, dword [edi + edx*2]
sub byte [edi], bh
rcr byte [ebp - 0x20bff395], cl
pop eax
sar edi, cl
fistp qword [eax + ecx*8 + 0x12]
sbb bl, byte [esp + ebx*8]
lodsb al, byte [esi]
jnp 0x4541ef
wait
cmp ebp, dword [edi + 0x6f]
inc ebx
xchg edx, eax
jp 0x45416b
pop ds
push edi
sub al, 0x56
and byte [ecx - 0x2b], ch
aam 0x9a
or al, 0x8e
out 0x4a, eax
insb byte es:[edi], dx
dec esp
cmp eax, 0x616af028
mov dl, 0xa1
retf
rcr byte [edx + ebx*4 - 0x112838fe], 1
not dword [esi - 0xa]
popfd
inc eax
inc esp
mov ebp, esi
inc ecx
sub dl, 0xac
lodsb al, byte [esi]
cmp byte [edx - 0x1524aa09], bl
out 0x91, eax
xchg ecx, eax
sal dword [ebp - 0x70], 0x54
cmp eax, 0x1623e1c0
imul ebx, dword [eax + 0x25], 0x6a611da2
and dl, dh
add esp, dword [edi + 0x21d56235]
inc edx
adc ecx, dword [ebp + 0x6ed3c004]
mov esi, 0xbeea1775
inc ebp
xor ebp, dword [ebp - 0x11dc5e09]
aaa
xchg edx, eax
mov ecx, 0x2495870f
add al, 0x71
jnp 0x454201
pop ebp
imul ecx, ebx, 0x2b
adc eax, 0x466212a1
int3
Function at 0x45e9b3
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4933c6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4bf2d8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.0045eba6
mov esi, dword [ebp + 8]
mov ecx, eax
lea eax, [esp + 0x14]
push eax
add ecx, 8
lea edi, [esp + 0x1c]
lea eax, [esp + 0x20]
call fcn.004696fb
xor ebx, ebx
cmp eax, ebx
jne 0x45eb61
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push dword [ebp + 0xc]
mov dword [esp + 0x3c], ebx
call fcn.0045eba6
mov ecx, eax
lea eax, [esp + 0x18]
add ecx, 0x38
push eax
call fcn.004663da
mov byte [esp + 0x40], 1
mov esi, dword [eax]
push ebx
push esi
xor edi, edi
call fcn.004b7ccf
add esp, 0x10
test eax, eax
jne 0x45ea7c
push esi
call fcn.0045c065
mov esi, eax
cmp esi, ebx
pop ecx
je 0x45ea7c
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esi + 8], ebx
je 0x45ea67
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x45ea7c
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x45ea75
mov eax, dword [ecx]
push 1
call dword [eax]
xor edi, edi
mov dword [esp + 0x28], esi
inc edi
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x14]
cmp edi, ebx
sete byte [esp + 0x13]
add eax, 0xfffffff0
call fcn.0046ac0e
cmp byte [esp + 0x13], bl
je 0x45eaac
push dword [ebp + 0x14]
lea eax, [esp + 0x24]
push eax
push dword [ebp + 8]
call fcn.0045ebe3
add esp, 0xc
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x45eb1c
push 0x14
call int.004b6f3c
cmp eax, ebx
pop ecx
je 0x45ead6
mov dword [eax + 4], ebx
mov dword [eax], 0x4a2934
mov dword [eax + 0x10], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov edi, eax
jmp 0x45ead8
xor edi, edi
cmp edi, ebx
je 0x45eb1c
push esi
push edi
call fcn.0045e109
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov esi, dword [ebp + 0x10]
push eax
call fcn.0045e1d1
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push eax
push ecx
push edi
push eax
push ecx
push esi
call fcn.0045e2fa
add esp, 0x18
call fcn.0045eba6
mov ebx, eax
mov eax, dword [ebp + 8]
add ebx, 8
call fcn.00468dc8
mov dword [eax], edi
xor ebx, ebx
or dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x45eb33
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x45eb45
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x20], ebx
je 0x45eb88
push dword [esp + 0x20]
call dword [fcn.00497258]
push dword [esp + 0x20]
call dword [fcn.00497250]
jmp 0x45eb88
mov edi, dword [eax + 4]
push dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov esi, dword [ebp + 0x10]
call fcn.0045e1d1
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push eax
push ecx
push edi
push eax
push ecx
push esi
call fcn.0045e2fa
add esp, 0x18
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 4], ebx
setne al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465fb8
Capabilities:
Encode data using xor

Disassembly:
push es
out 0x32, al
inc esi
cmp ah, byte [edi - 0x45]
les esi, [edi - 0x19]
and eax, 0x5df12b02
mov ebx, 0x2859a5d8
inc eax
inc esp
mov bh, 0xf7
invalid
xor byte [edx - 0x35], bh
mov bh, 0xd0
rol eax, 0x99
mov dl, 0xb2
cli
mov cl, 0x9e
mov ah, 0xaa
outsd dx, dword [esi]
cmp dword [esp + edx*4 - 0x3a], ecx
jnp 0x465e8e
jg 0x465f23
adc cl, cl
or byte [ebx - 0x2dcfb975], dh
inc edx
invalid
jp 0x465ec4
cmp esp, ebp
invalid
jmp 0x465ea5
into
xor al, 0xea
mov edx, 0xac5e8c18
adc byte [edx - 0x53], bh
cmpsw word [esi], word es:[edi]
cmp byte [ebx - 0x57241f1f], dl
mov dword [eax - 0x1bcc3b65], edi
mov eax, eax
pop ds
xchg esp, eax
cmp al, 0x98
pop edi
mov al, 0x3b
loopne 0x465f19
pushal
jne 0x465f8e
mov ebx, 0xc3994729
movsb byte es:[edi], byte [esi]
into
lcall 0xbde2, 0x256a6002
aas
sub byte [edi - 0x54b9df40], cl
stosd dword es:[edi], eax
std
test al, 0x3b
sbb byte [ecx - 0x17], dh
lahf
loopne 0x465f3e
adc byte [ebp + 0x6e], bh
ljmp 0x3cfa
lodsb al, byte [esi]
sub ecx, eax
dec esp
fbstp tbyte [esi]
add byte [ebp + 0x28], al
inc ebp
stosb byte es:[edi], al
aam 0xac
jge 0x465fda
pop ecx
sbb eax, 0x28baa2b3
push ecx
sbb byte [esi - 0x2256a4ce], cl
sub al, byte [ebx + 5]
sbb dword [eax + ebx + 0x3e9a7e1d], esp
movsb byte es:[edi], byte [esi]
mov edx, 0x3aab8bd2
stosd dword es:[edi], eax
cmp al, byte [eax + 0x6a5bf5d0]
dec esi
stosd dword es:[edi], eax
cmp al, byte [eax + 0x6a5bf5d0]
dec esi
pop esi
imul ecx, dword [eax], 0xffffffe5
lodsd eax, dword [esi]
inc ebx
push 0x9c3bb89a
aaa
wait
cmp eax, ebp
std
sub al, 0xda
jno 0x465f7b
push eax
sbb eax, 0x7ce82e57
sub edi, dword [ebx]
mov ebx, 0x386e81cb

Function at 0x468e19
Capabilities:
Encode data using xor

Disassembly:
daa
mov esp, 0x9f1a8e19
popfd
leave
pop esp
sbb al, 0x8c
loopne 0x468e5b
push ebx
mov dword [0xae1693e4], eax
daa
stosd dword es:[edi], eax
adc ebp, esi
rcl byte [esi + 6], 0xe5
pop edi
or ebx, dword [edi - 0x5e]
or dword [ebx], 0x72c0b7a2
mov byte [0x9772c0b7], al
les esi, [ebp + 0x437fbd44]
Function at 0x498506
Capabilities:
Encode data using xor

Disassembly:
les edi, [ebp + 0x7e23c8d4]
clc
popal
inc dword [ecx - 0x31cf8a47]
mov al, 0x41
mov ecx, 0xb2929404
pushal
and byte [esi], dl
stc
xor al, byte [eax + 0x5bd5af66]
les eax, [ebp + 0x60]
or esi, dword [ecx + 0x52eacdfc]
dec eax
out 0xb3, al
mov ah, 0x83
cmc
call 0x3488bebe
jns 0x49857f
push 0x75a4843e
ret
xor dword [edi], eax
push ebp
add dword [edi], esi
and edx, edi
stosb byte es:[edi], al
cli
insd dword es:[edi], dx
fadd dword [edx + 0x7218e66a]
invalid

Function at 0x4a014e
Capabilities:
Encode data using xor

Disassembly:
dec ebp
xchg ebp, eax
mov esp, 0x45e7513a
out 0x45, eax
mov edi, ebp
push 0x4dcd1aee
sub cl, byte [0x4b0983e9]
sahf
movsd dword es:[edi], dword [esi]
lcall 0x3d9c, 0x1ae67fc9
xchg esp, eax
lcall 0x3c3c, 0x6523ca74
pop ebp
jg 0x4a00e2
sbb bl, byte [ebp + edi - 0x358b656c]
and esp, dword [ebp + 0x3c]
cmp al, 0x5d
xchg dword [edx - 0x21d5399c], esp
salc
cld
xor esi, dword [ebx - 0xd]
lodsb al, byte [esi]
adc cl, dl
sub cl, bl
jne 0x4a0121
mov al, byte [0x37c1273f]
invalid
sti
inc eax
cdq
jns 0x4a0150
mov bh, 0x81
mov ebx, 0x64479736
and al, byte [ecx]
outsd dx, dword [esi]
dec esp
pop ebx
pushfd
or al, 0x83
and byte [ebp + 0x1414785], ch
imul di, word [edi], 0x73
cmpsb byte [esi], byte es:[edi]
sub al, 0x10
jecxz 0x4a00e7
out 0xe2, eax
jo 0x4a018e
invalid
add al, al
mov edx, 0xfaf4741d
movsb byte es:[edi], byte [esi]
sbb al, 0x78
push esp
cmp cl, bl
js 0x4a00fa
js 0x4a0124
jl 0x4a013b
inc edx
pop ebp
sti
mov dword [ebx], ecx
popfd
jl 0x4a0162
sbb al, 0x3c
mov dword [0xe31a56b0], eax
stosd dword es:[edi], eax
aas
or eax, 0x1cc7657b
lds eax, es:[eax - 0x4c]
push ds
cmc
dec esp
dec eax
test al, 0x7d
xor byte [edi], ah
jl 0x4a0169
inc eax
adc eax, 0xcb3f9ef7
popfd
psllw mm6, qword [0xc812340]
int1
xor eax, 0xc812340
jmp 0x4a01f2
add eax, 0x45d05290
add al, 0x7b
dec ecx
sub eax, 0xee9dbc9e
xor esi, 0x698145e2
fild word [ecx - 0x30e77a2a]
sti
aad 0x84
sub bl, byte [esi - 0x1ea906fd]
inc edi
xor ebp, dword [edx]
enter 0x3000, 0x12
jbe 0x4a01d9
xchg byte [edx - 0x7a], ch
mov al, byte [0x4b114d44]
sub dword [ebx + 0x68244e30], esi
invalid
Function at 0x4a3723
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4933c6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4bf2d8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.004a3916
mov esi, dword [ebp + 8]
mov ecx, eax
lea eax, [esp + 0x14]
push eax
add ecx, 8
lea edi, [esp + 0x1c]
lea eax, [esp + 0x20]
call fcn.004ae46b
xor ebx, ebx
cmp eax, ebx
jne 0x4a38d1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push dword [ebp + 0xc]
mov dword [esp + 0x3c], ebx
call fcn.004a3916
mov ecx, eax
lea eax, [esp + 0x18]
add ecx, 0x38
push eax
call fcn.004ab14a
mov byte [esp + 0x40], 1
mov esi, dword [eax]
push ebx
push esi
xor edi, edi
call 0x4fca3f
add esp, 0x10
test eax, eax
jne 0x4a37ec
push esi
call fcn.004a0dd5
mov esi, eax
cmp esi, ebx
pop ecx
je 0x4a37ec
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esi + 8], ebx
je 0x4a37d7
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x4a37ec
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x4a37e5
mov eax, dword [ecx]
push 1
call dword [eax]
xor edi, edi
mov dword [esp + 0x28], esi
inc edi
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x14]
cmp edi, ebx
sete byte [esp + 0x13]
add eax, 0xfffffff0
call int.004af97e
cmp byte [esp + 0x13], bl
je 0x4a381c
push dword [ebp + 0x14]
lea eax, [esp + 0x24]
push eax
push dword [ebp + 8]
call fcn.004a3953
add esp, 0xc
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x4a388c
push 0x14
call 0x4fbcac
cmp eax, ebx
pop ecx
je 0x4a3846
mov dword [eax + 4], ebx
mov dword [eax], 0x4a2934
mov dword [eax + 0x10], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov edi, eax
jmp 0x4a3848
xor edi, edi
cmp edi, ebx
je 0x4a388c
push esi
push edi
call fcn.004a2e79
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov esi, dword [ebp + 0x10]
push eax
call fcn.004a2f41
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push eax
push ecx
push edi
push eax
push ecx
push esi
call fcn.004a306a
add esp, 0x18
call fcn.004a3916
mov ebx, eax
mov eax, dword [ebp + 8]
add ebx, 8
call fcn.004adb38
mov dword [eax], edi
xor ebx, ebx
or dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x4a38a3
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4a38b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x20], ebx
je 0x4a38f8
push dword [esp + 0x20]
call dword [fcn.00497258]
push dword [esp + 0x20]
call dword [fcn.00497250]
jmp 0x4a38f8
mov edi, dword [eax + 4]
push dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov esi, dword [ebp + 0x10]
call fcn.004a2f41
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push eax
push ecx
push edi
push eax
push ecx
push esi
call fcn.004a306a
add esp, 0x18
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 4], ebx
setne al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402940
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 0x40297d
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 0x40299d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404a44
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402bcc
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.004047c4
test esi, esi
jne 0x402c02
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.004048b4
jmp 0x402c20
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a80
mov edi, eax
test esi, esi
je 0x402c20
cmp dword [ebx], 0
je 0x402c20
dec esi
jmp 0x402c09
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b1024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403818
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037f8
xor eax, eax
push ebp
push 0x4037f1
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 0x403834
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 0x4037f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4b1024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b1024], ax
mov esp, ebp
pop ebp
ret
Function at 0x406a4c
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 0x406ab2
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.00404a44
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031dc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a9c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ab9
lea eax, [ebp - 0x10]
call fcn.004047c4
ret

Function at 0x40e18c
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 0x40e1c5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048b4
jmp 0x40e1ce
mov eax, ebx
mov edx, esi
call fcn.00404818
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e1d8
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 0x40e1f9
mov al, byte [esp]
jmp 0x40e1fb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f1bc
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 0x40f292
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040485c
lea eax, [ebp - 8]
call fcn.00404d00
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cb0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f27c
mov eax, ebx
call fcn.0040272c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f275
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.00404cb0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f25f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f2a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f25f
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 0x40f27c
mov eax, dword [ebp - 0x10]
call fcn.0040274c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f299
lea eax, [ebp - 8]
call fcn.004047c4
ret