joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c8c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422aa4], 0
push esi
jne 0x405cc3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c9d
mov dword [ecx*4 + 0x422aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405c98
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cf4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405cd6
pop edi
not eax
pop esi
ret 0xc

Function at 0x4151c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x4151e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4151e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4151d8
mov eax, 1
add ebx, ebx
jne 0x4151fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4151f0
jne 0x41520c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4151f0
xor ecx, ecx
sub eax, 3
jb 0x415220
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x415292
mov ebp, eax
add ebx, ebx
jne 0x41522b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x415238
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41525c
inc ecx
add ebx, ebx
jne 0x415248
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41523d
jne 0x415259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41523d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41527c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41526d
jmp 0x4151de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41527c
add edi, ecx
jmp 0x4151de
pop esi
mov edi, esi
mov ecx, 0x22b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41529a
cmp byte [edi], 5
jne 0x41529a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41529f
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x41530e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4152cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19a28]
or eax, eax
je 0x415308
mov dword [ebx], eax
add ebx, 4
jmp 0x4152e9
call dword [esi + 0x19a24]
mov ebp, dword [esi + 0x19a2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x415342
sub esp, 0xffffff80
jmp 0x403008
Function at 0x409b90
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
or byte [0xb2375977], ah
scasd eax, dword es:[edi]
mov edx, 0x53477f58
ficom dword [edx - 0x25]
imul edx, dword [ecx], 0xffffff9b
xor dword [edx + 0x29edca94], eax
neg byte es:[ebx + 0x36]
jecxz 0x409c25
sbb dword [eax + 0x4d], 0xeaeb085e
call 0x30235b0
mov ebp, 0xfffb2946
sbb dh, byte [ebx]
xchg esp, ebx
mov esi, 0x21535816
outsd dx, dword [esi]
inc edx
mov ah, 0x89
test al, 0x1c
or esp, ebx
ror bh, 0xa1
add ecx, dword [esi - 0x65a11e5]
cwde
das
inc ebx
outsd dx, dword [esi]
sub byte [edi], 0xbe
invalid
leave
int1
outsb dx, byte [esi]
mov bl, ah
rcr dword [ebx], 1
ret 0x5dbc

Function at 0x409e50
Capabilities:
Encode data using xor

Disassembly:
and eax, 0x25b73a76
xchg edx, eax
sahf
inc ebp
jge 0x409e86
sub dh, ch
cmp byte [ebx + 0x2f58db29], 0x50
aas
retf
in eax, 0x77
xor edx, ebp
std
mov bh, 0x96
mov dword [0x5e381420], eax
cmpsd dword [esi], dword es:[edi]
push esp
invalid
js 0x409e77
cdq
adc eax, 0xc6e0a839
push es
sbb dh, cl
mov dh, 0xcf
xor dword [edx], esp
scasb al, byte es:[edi]
sbb edx, dword [edi - 0x10]
and ah, ch
xor ch, byte [edi + 0x48]
enter 0xffffffffffffea7d, 0x31
pop ss
and eax, 0x4a
sub byte [esi + 0x5a], bl
fidivr dword [edi]
int3

Function at 0x40df20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x5d]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x40df4a
mov edx, edi
lea esi, [edi + ebx - 4]
xor edx, ebx
cmp edi, esi
mov eax, edi
ja 0x40df4a
xor dword [eax], edx
add eax, 4
cmp eax, esi
jbe 0x40df41
mov ecx, dword [ecx + 0x39]
mov esi, 0x80004005
test ecx, ecx
je 0x40df77
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ebx
push edi
call fcn.0040e270
test ax, ax
jne 0x40df77
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x14
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x41d470
Capabilities:
Encode data using xor

Disassembly:
imul edx, dword [esi + 0x34], 0x9e7ba5bd
cmp eax, 0x3c0dbb8d
pop es
pushal
test dword [0xbe0530fe], edi
cmp ebp, ebp
sar dword [ebx + esi*2 + 0x11bcf593], 0x8a
jmp 0x41d4cc
xor ebp, eax
scasb al, byte es:[edi]
mov esp, 0x3d303eed
stosb byte es:[edi], al
lodsb al, byte [esi]
mov edi, dword [ebp + 0x3dc78e4b]
jle 0x41d521
inc esi
mov esi, 0x3f2904fd
sub cl, byte [ebx + 0x72d3eff]
adc eax, 0x8323cdbe
cmp eax, 0xbd4bdead
mov al, byte [0x36bd75a8]
loop 0x41d509
mov ebp, 0x3e346638
pop es
add dh, byte [ebp - 0x61f7a4c3]
cmp esi, dword [esi - 0x3e]
jbe 0x41d490
cmp eax, 0x42875dbd
cmp eax, 0xbd28b5f1
out 0x74, eax
push edi
cmp eax, 0xbd4ff60f
loop 0x41d52b
or bh, byte [esi]
leave
sbb dword [ebp - 0x42], eax
ret 0x2caa
mov ebx, 0x28803c1e
fnstcw word [ebx]
lodsd eax, dword [esi]
sub dword [ebp + 0x3ce760c3], edi
imul esi, dword [eax + ecx*4], 0xbe33cbbd
cmp eax, 0xbe036b33
imul eax, dword [ebx], 0xffffffbe
xor byte [eax + 0x39223e03], bl
mov esi, 0x3f48e897
mov esi, 0x3f48e897
add eax, 0x2e3ec87e
js 0x41d597
mov esi, 0x3db7b2f2
mov esp, 0xdebe4aea
xor dword [esi + edi + 0x3dab7fdc], edx
lcall 0xa899, 0xbebb5a6f
mov esp, 0x3ceec8db
salc
mov dl, 0xb7
cmp eax, 0xbe4aeabc
fidiv word [ecx]
xchg esp, eax
fdivr qword ds:[edi - 0x55]
cmp eax, 0xbb5a6f9a
mov esi, 0xdbbca899
enter 0x3cee, 0xffffffffffffffd6
bound ebp, qword [esp + edi*4 + 0x3d3490f2]
add al, 0xa8
or dword [ebp + 0x3d5ce1de], edi
xor byte [esi + 0x33], cl
mov ebp, 0x3d890fda
pushfd
mov esp, 0x98d6bde5
aas
lea eax, [ebx]
sar dword [esi], 0xb1
jb 0x41d539
inc eax
sbb eax, 0x4db33e01
or eax, 0x7b01d1be
mov esp, 0xbb80214b
scasb al, byte es:[edi]
je 0x41d5cf
cmp al, 0xb0
mov al, byte [0xb723bc51]
adc al, 0x3c
ficom word [eax - 0x53]
cmp al, 0xde
push eax
lodsd eax, dword [esi]
mov esp, 0x3ca6a822
popal
mov ebp, 0x3d28a86c
jmp 0x41d627
cmp bl, byte [edi + 4]
xor bh, byte [edi + esi*8 - 0x2cc37475]
imul eax, ecx, 0xffffffbb
jle 0x41d653
mov esp, 0x3c8b8bf7
shr dword [ebx - 0x3f], cl
mov ebx, 0x3bf6797e
idiv byte [ebx]
add eax, 0xbabb9838
sahf
jl 0x41d620
mov edx, 0xaf3c7c9e
scasd eax, dword es:[edi]
jmp 0x41d645
xor al, 0x33
jns 0x41d5e0
xchg esp, eax
insd dword es:[edi], dx
mov edi, dword [eax + esi*8]
cmp al, 0xf0
add eax, eax
mov esp, 0x3cf64c6c
jp 0x41d5cb
cmp byte [ebp + 0x3d8b3d0c], bh
inc edx
xor ecx, dword [eax]
mov esi, 0x3f844350
stosd dword es:[edi], eax
mov bl, 0x80
cmp eax, 0x3f85e417
in al, 0x85
aas
add dl, byte [edx + 0x2f]
cmp eax, 0xbc93f34d
cmp byte [ebp - 0x15c4c3a3], 0x16
mov esp, 0x3c05ef69
push ss
iretd
cmp al, 0x3b
ljmp 0x3c05

Function at 0x42ade0
Capabilities:
Encode data using xor

Disassembly:
and eax, 0xd7cc36b0
pop esi
and byte [ebx], dh
lodsd eax, dword [esi]
aam 0x4a
adc al, 0x3f
mov eax, 0xdad7418e
adc al, bl
add al, 0xbe
sti
mov cl, 0xa8
xchg bl, dh
scasb al, byte es:[edi]
sbb al, 0xaa
pop edx
mov eax, 0x869c13b1
adc ebx, 0xd21a221f
invalid
Function at 0x56564a
Capabilities:
Parse pe header

Disassembly:
jmp 0x592523
lea esp, [esp + 4]
jmp fcn.005925b1

Function at 0x565671
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x592651
lea esp, [esp + 4]
jmp fcn.00592631

Function at 0x566f16
Capabilities:
Encode data using xor

Disassembly:
jmp 0x59511d
jmp 0x566f32
lea esp, [esp + 4]
jmp 0x566acd
push 0x10
push 0x5738ac
jmp 0x59514e
call fcn.00586477
xor eax, eax
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
setne al
cmp eax, edi
jne 0x5951a7
call fcn.00586457
mov dword [eax], 0x16
push edi
push edi
push edi
push edi
push edi
call fcn.0058648b
add esp, 0x14
or eax, 0xffffffff
jmp 0x5951e4
cmp dword [0x576208], 3
jmp 0x5952a5
push ebx
push edi
call fcn.00584260
add cl, ch
push eax
add dword [eax], eax
add byte [edx + 0x1ced8a14], cl
mov ch, 0x6f
invalid
call fcn.005864cc
ret
mov esi, dword [ebp - 0x1c]
jmp 0x59549b
push 4
call fcn.00586533
pop ecx
mov dword [ebp - 4], edi
push ebx
call fcn.005864f1
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x595230
mov esi, dword [ebx - 4]
sub esi, 9
mov dword [ebp - 0x1c], esi
jmp 0x59549b
jne 0x5951c6
je 0x595250
sub eax, 0xab5839a9
stosd dword es:[edi], eax
inc eax
xor al, 0xb1
and dword [eax - 0x4d], eax
push ecx
jb 0x5952b1
add edi, esi
adc bh, al
jmp 0x85690faa
mov eax, esi
jmp 0x5951e4
mov dword [ebp - 4], 0xfffffffe
call 0x56735b
cmp dword [ebp - 0x20], edi
jne 0x59539f
jmp 0x5951c6
Function at 0x56839c
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
jmp 0x5683d4
jmp 0x5683b8
lea esp, [esp + 4]
jmp 0x56837f
jmp 0x5683f0
jmp 0x56840c
push ebx
jmp 0x568428
jmp 0x568444
push ebp
jmp 0x568460
jmp 0x56847c
push esi
jmp 0x568498
jmp 0x597821
push edi
movzx edx, byte [eax]
jmp 0x59797d
shl edx, 8
movzx esi, byte [eax + 1]
xor edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 3]
jmp 0x5979c5
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 5]
jmp 0x597ad1
mov dword [ecx], edx
movzx edx, byte [eax + 4]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 6]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 7]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 9]
mov dword [ecx + 4], edx
movzx edx, byte [eax + 8]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xa]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xb]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xd]
mov dword [ecx + 8], edx
movzx edx, byte [eax + 0xc]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl edx, 8
xor edx, esi
shl edx, 8
xor edx, eax
mov dword [ecx + 0xc], edx
mov eax, edx
shr eax, 0x10
mov esi, 0xff
and eax, esi
mov eax, dword [eax*4 + 0x571d1c]
xor eax, 0x1000000
mov edi, edx
shr edi, 8
and edi, esi
mov edi, dword [edi*4 + 0x571d1c]
and edi, 0xff0000
mov ebx, dword [ecx + 4]
and eax, 0xff000000
xor eax, edi
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi*4 + 0x571d1c]
xor eax, edi
mov edi, edx
and edi, esi
mov edi, dword [edi*4 + 0x571d1c]
mov ebp, 0xff00
and edi, ebp
xor eax, edi
xor eax, dword [ecx]
lea edi, [ecx + 0x10]
xor ebx, eax
mov dword [edi], eax
mov eax, dword [ecx + 8]
xor eax, ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], eax
xor edx, eax
mov dword [ecx + 0x1c], edx
call fcn.005843ae
mov eax, edi
mov edx, dword [eax + 0xc]
mov ecx, edx
shr ecx, 8
mov edi, edx
and ecx, esi
mov ecx, dword [ecx*4 + 0x571d1c]
shr edi, 0x10
and edi, esi
mov edi, dword [edi*4 + 0x571d1c]
and ecx, 0xff0000
and edi, 0xff000000
xor ecx, edi
mov edi, edx
and edx, esi
mov edx, dword [edx*4 + 0x571d1c]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x571d1c]
xor ecx, edi
and edx, ebp
xor ecx, edx
xor ecx, dword [ebx]
lea edi, [eax + 0x10]
xor ecx, dword [eax]
add ebx, 4
mov dword [edi], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x1c], edx
cmp ebx, 0x573544
jne 0x597bb0
push 0xa
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5858fb
Capabilities:
Enumerate pe sections

Disassembly:
call fcn.0056564a
jmp 0x56566c

Function at 0x586a05
Capabilities:
Encode data using base64
Encrypt data using speck

Disassembly:
call fcn.005694c1
jmp 0x56969a

Function at 0x5925b1
Capabilities:
Parse pe header

Disassembly:
cmp word [ecx], ax
je 0x592589
xor eax, eax
pop ebp
ret
xor edx, edx
mov ecx, 0x10b
jmp 0x5925e5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x592563
je 0x59256a
mov dword [edx - 0x30], 0x16ab42b7
pushfd
xor dl, byte [ebp - 0x5c]
inc esi
cmp byte [ecx + 0x16b34021], dh
das
movsd dword es:[edi], dword [esi]
xor eax, 0xb666af5c
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
jmp 0x59255e
cmp word [eax + 0x18], cx
sete dl
jmp 0x592623
mov eax, edx
pop ebp
ret

Function at 0x592631
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
jmp 0x592850
pop edi
pop esi
pop ebx
pop ebp
jmp 0x592763
inc edx
add eax, 0x28
cmp edx, esi
jb 0x592874
jmp 0x592788
ret
xor eax, eax
jmp 0x592687
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x592788
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x5926a6
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x592687
jmp 0x5926a6

Function at 0x5f4fb8
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
nop
outsb dx, byte [esi]
inc ecx
inc sp
cmp dword [edx], edx
sub al, 0x83
mov dword [ecx + 0x3a], ebp
and eax, ebx
push ebx
lds ebp, ss:[edx - 0x3c]
pop ecx
leave
test al, 0x5b
out dx, al
stosd dword es:[edi], eax
ret
call 0x5f4fb8
push ebx
popal
outsb dx, byte gs:[esi]
imul ebp, dword [bp + 0x65], 0x63694c20
outsb dx, byte gs:[esi]
jae 0x5f5017
jb 0x5f4fca
inc esp
insd dword es:[edi], dx
outsd dx, dword [esi]
and byte [esi + 0x31], dh
cmp byte cs:[esi], ch
xor byte [esi], ch
xor byte [eax], al
lea esp, [esp + 4]
pushal
mov eax, dword fs:[0x30]
add byte [eax], al
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x5f4fff
movzx ebx, word [eax + 0x3c]
add ebx, eax
cmp word [ebx], 0x4550
je 0x5f50fe
jmp 0x5f500f
call 0x5f5004
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
je 0x5f4fd4
sub eax, 0x10000
jmp 0x5f5008
adc al, 0xb5
and eax, 0x5b3abf4c
fisttp word [edi + 0x2a]
fnstenv [ebx]
les eax, [ebp - 0x2b]
mov esp, 0xa527ab4f
xor eax, 0xa34caf5c
and dh, byte [eax + 0xec022d7]
mov byte [esi], bl
jns 0x5f4fc2
popal
sub al, 0xd8
adc dword [edx - 0x18], ebx
add byte [eax], al
add byte [eax], al
call 0x5f5044
pop eax
sub eax, 0x5f5044
cmp dword [eax + 0x561b39], 0
je 0x5f5076
lea esp, [esp + 8]
popal
jmp 0x5f4f78
inc dword [eax + 0x561b39]
push 0xade8173e
add dword [esp], 0x526d421c
push 0
push 0
push 0xd1652f50
add dword [esp], 0x2ef01582
call fcn.0056f0d6
call fcn.0056e4a7
popal
jmp 0x5f4f78
push eax
jmp 0x5f503f
Function at 0x402df0
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 0x402e2d
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 0x402e4d
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405224
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40309c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404fb4
test esi, esi
jne 0x4030d3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004050a4
jmp 0x4030f4
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402f38
mov dword [esp], eax
test esi, esi
je 0x4030f4
cmp dword [ebx], 0
je 0x4030f4
dec esi
jmp 0x4030db
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403f94
Capabilities:
Query or enumerate registry value

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

Function at 0x404d8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59104c], 0
je 0x404ded
cmp word [0x591220], 0xd7b2
jne 0x404db5
cmp dword [0x591228], 0
jbe 0x404db5
mov eax, 0x59121c
call dword [0x591238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x582094
push 0xfffffffffffffff5
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 0x404e14
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x582034], 0
jne 0x404e09
push 0
push 0x58208c
push 0x582094
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x404f68
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.00402bb8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x59104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404f30
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4074bc
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 0x407522
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00405224
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403968
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40750c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407529
lea eax, [ebp - 0x10]
call fcn.00404fb4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405474
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a8d9
test al, 0x10
jne 0x40a8dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40aa1c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405474
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x40aa30
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.00405474
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40aa52
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40e020
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 0x40e059
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004050a4
jmp 0x40e062
mov eax, ebx
mov edx, esi
call fcn.00405008
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e06c
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 0x40e08d
mov al, byte [esp]
jmp 0x40e08f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40f0bc
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 0x40f192
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040504c
lea eax, [ebp - 8]
call fcn.004054c4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405474
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f17c
mov eax, ebx
call fcn.00402bb8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f175
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.00405474
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f15f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f1a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f15f
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 0x40f17c
mov eax, dword [ebp - 0x10]
call fcn.00402be8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f199
lea eax, [ebp - 8]
call fcn.00404fb4
ret

Function at 0x40f90c
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 0x40f970
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00405224
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040a43c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f977
lea eax, [ebp - 0xc]
call fcn.00404fb4
ret

Function at 0x410170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x58f848]
cmp dword [eax], 0
je 0x4101a6
push 0xa
push 0x4101fc
mov eax, dword [0x58f848]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_FindResourceA
push eax
mov eax, dword [0x58f848]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_LoadResource
mov dword [esp], eax
jmp 0x4101f2
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x58fe60]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4101f2
mov ebx, dword [esp + 4]
push 0xa
push 0x4101fc
mov esi, dword [ebx + 4]
push esi
call sub.KERNEL32.DLL_FindResourceA
push eax
push esi
call sub.KERNEL32.DLL_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x4101f2
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x4101bd
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret