joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13ab810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11ad558
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x11bff00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x13ab93e
cmp byte [edi + 0x49], bl
je 0x13ab93e
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x13ab932
push 8
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.013bc3b0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x1c], 8
jae 0x13ab892
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x13ab8aa
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x13ab8d3
dec eax
je 0x13ab8d7
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x13ab92d
jmp 0x13ab939
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x13ab8e7
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x13ab910
cmp ebx, 0x10
jae 0x13ab8f6
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.013bfc97
add esp, 0x10
cmp esi, eax
jne 0x13ab92a
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x13ab936
test esi, esi
jne 0x13ab89e
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0139dd20
jmp 0x13ab898
lea ecx, [ebp - 0x2c]
call fcn.0139dba0
xor al, al
jmp 0x13ab940
lea ecx, [ebp - 0x2c]
call fcn.0139dba0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.013bc42a
mov esp, ebp
pop ebp
ret
Function at 0x13b88e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x13b88ee
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x13b89cd
mov esi, edx
shr esi, 3
push edi
jmp 0x13b8910
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b5c90]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b5c90]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b5c90]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b5c90]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b5c90]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b5c90]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b5c90]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x11b5c90]
add ecx, 8
sub edx, 8
dec esi
jne 0x13b8910
pop edi
test edx, edx
je 0x13b89ea
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x11b5c90]
inc ecx
dec edx
jne 0x13b89d1
not eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x11b5c90]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x11b5c90]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x13b8f80
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x13b906b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x13b8fb7
cmp dword [esi + 0x40], edi
jae 0x13b8fb7
push eax
call fcn.013bc346
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x13b8fcf
lea eax, [edi + edi]
push eax
call fcn.013be601
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.013bd990
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x13b9068
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x11b5c90]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x11b5c90]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x13b8fe7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x13b90aa
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x13b908f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.013bd990
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x13b90cc
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [0x11d2760]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x13ba660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x13ba875
cmp dword [esi + 0x6af90], 3
jb 0x13ba6d7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x13ba717
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x13ba717
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x13ba6ff
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.013b7de0
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x13ba717
mov edi, eax
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x13ba7f4
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.013b78b0
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp edi, dword [esi + 0x6af98]
ja 0x13ba7be
cmp eax, 3
jb 0x13ba7be
mov eax, 1
sub edi, eax
lea ecx, [ecx]
add dword [esi + 0x6af84], eax
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub edi, eax
mov dword [esi + edx*4 + 0x2af70], ebx
mov edx, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + edx*4 + 0x4af70], ecx
jne 0x13ba760
add dword [esi + 0x6af84], eax
jmp 0x13ba817
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
xor edi, edi
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
jmp 0x13ba817
movzx edx, byte [ecx + esi + 0x1af70]
push edx
push 0
push esi
call fcn.013b78b0
dec dword [esi + 0x6af90]
add esp, 0xc
inc dword [esi + 0x6af84]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x13ba853
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x13ba830
lea ecx, [eax + esi + 0x1af70]
jmp 0x13ba832
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.013ba4d0
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x13ba868
push esi
call fcn.013b7f40
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x13ba683
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x13ba888
lea ecx, [eax + esi + 0x1af70]
jmp 0x13ba88a
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.013ba4d0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x13f9a31
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ecx
mov ecx, 0x72854a54
lea ecx, [ecx*2 + 0x69c11fd6]
movsx ecx, cl
not ecx
not ecx
mov eax, dword [esp + ecx - 0x72]
call fcn.014f2f1e
mov esp, ebp
cwde
setnp ch
pop ebp
rdtsc
bts eax, ebx
rcl dx, 0x56
popfd
rdtsc
jmp 0x147645a
pop esi
movzx ecx, sp
xchg ecx, ecx
setbe ch
pop ecx
jmp 0x13c7f5b
pop eax
movzx ecx, cx
pop edi
movsx ecx, dx
cmove dx, bp
pop edx
movzx ecx, dx
pop ebx
bswap si
jmp 0x144b335

Function at 0x145f50f
Capabilities:
Encode data using xor

Disassembly:
push edx
mov edx, ebx
add dword [esp + 0x10], 0xffed7f26
or bl, 0x1d
mov ecx, ebx
add dword [esp + 4], 0xffff7326
mov dword [esp], ebx
mov edx, ecx
not ecx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + ebx*2 - 0x68a05cba]
mov dword [esp + 0x10], ecx
call fcn.01410cc1
cwde
xor bh, byte [ecx]
mov ch, 0x14
movsb byte es:[edi], byte [esi]
or dword [edx - 0x44a7e19d], esi
cli
mov byte [eax - 0x44], ch
lea ebp, [ebx]
std
fcom dword [ebx]
mov ebp, 0x764dfcd
pushfd
salc
std
xchg ecx, eax
lodsb al, byte [esi]
ror dword [edx + 0x1a6eb100], 1
xchg esi, eax
sub dword [ecx + 0x6d], 0xf460d02c
mov edx, 0x198367e0
jne 0x145f57a
sbb eax, 0x6a04458f
add al, 0x6a
xor eax, 0xa3f30d14
and al, 0xa
test byte [esi + 0x29], dl
add cl, byte [ecx]
rcr byte [ecx], 5
jle 0x145f607
dec eax
or al, 0xe7
in al, dx
js 0x145f59e
nop
dec edi
in eax, dx
outsd dx, dword [esi]
push cs
fstpnce st(5), st(0)
push 0x618c6379
popal
loopne 0x145f596
mov esp, 0xa1649766
fld dword [edi]
xchg ecx, eax
fidiv word [eax + 0x48]
rcl bh, 0xe9
fdivrp st(0)
rcr byte [esi + 0xb4657d], 1
jmp 0x145f60f
xor cl, byte [eax]
cmp dword [ebx + 0x45], ebp
mov dl, 0x68
invalid
fsub qword [eax + ebx*2]
stosd dword es:[edi], eax
xchg ebp, ecx
add dword [0x4206fd11], esi
adc ebp, edi
push es
inc edx
stosd dword es:[edi], eax
lodsb al, byte [esi]
pand mm7, qword [0xacac089c]
xor dword [edi - 0x4f4ec5c4], 0xb9e0804b
rcl byte [esi], cl
sar byte [esi - 0x25ba4a5b], 1
cmp esp, dword [ebx]
jne 0x145f618
dec esp
cdq
and al, 0xd4
aad 0xf
adc al, 0xd3
mov byte [0x626978a2], al
xor al, 0x48
outsb dx, byte [esi]
adc eax, 0x8c67198e
sbb byte [ecx], ch
pushal
sti
mov ebx, 0x2d6504bc
mov word [ebx], es
adc dl, byte [edi + 0x18b0add]
in eax, dx
or eax, 0xb2f090fc
insb byte es:[edi], dx
push es
sal byte [ebp - 0x436e43e5], 0x82
sub ah, byte [ecx + 0x3489f5bb]
fild qword [ebx + 0x1f]
add al, 0xd8
sbb al, 0xa5
push ebp
rol dword [ebp - 0xd299acd], 1
invalid
Function at 0x29a09125
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x29a09134
pop dword [ebp - 0x40]
mov eax, 0x453b7fef
add eax, 0xe4651145
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x8ac47f77
sub dword [ebp - 0x50], 0x3c723a2c
mov dword [ebp - 0x4c], 0x75938a7b
sub dword [ebp - 0x4c], 0x43603e36
mov dword [ebp - 0x48], 0x9965e349
add dword [ebp - 0x48], 0xb2e660e5
mov dword [ebp - 0x44], 0xd5c93ce0
sub dword [ebp - 0x44], 0xd5c93ce0
lea eax, [ebp - 0x50]
push eax
mov eax, 0xa0f6edef
add eax, 0x88aa529d
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xaf3cff05
sub dword [ebp - 0x50], 0x3aca95af
mov dword [ebp - 0x4c], 0x48191acf
add dword [ebp - 0x4c], 0xf95346a6
mov dword [ebp - 0x48], 0x60fcf547
add dword [ebp - 0x48], 0x2727725
mov dword [ebp - 0x44], 0x9e85de99
add dword [ebp - 0x44], 0x617a2167
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x207ad9ab
add eax, 0x9266699
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3bef7
push 0
call eax
mov ecx, 0xd2ccca7f
sub ecx, 0xd2cc7bce
mov edx, eax
mov ebx, 0x29a22000
add ebx, dword [ebp - 0x40]
mov edi, 0x251e0d78
xor dword [ebp - 0x24], edx
mov esi, dword [ebx]
xor dword [ebp - 0x14], 0x4b18b775
sub esi, edi
mov dword [ebp - 0x28], 0x10eec37d
mov dword [edx], esi
mov dword [ebp - 0x34], 0x24d90633
add edx, 0x1ac30583
add edx, 0xe53cfa81
add ebx, 0x5a69dc85
add ebx, 0xa596237f
loop 0x29a0924a
add eax, 0x14432ad8
sub eax, 0x1441fd41
mov ebx, eax
add eax, 0xc805db9
sub eax, 0xc805db4
mov ecx, 0x1638c62e
add ecx, 0x136739d2
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x403298
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.00405228
test esi, esi
jne 0x4032ce
push 0x105
lea eax, [esp + 4]
push eax
push 0
call fcn.004012b4
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405318
jmp 0x4032ec
call fcn.0040129c
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040319c
mov edi, eax
test esi, esi
je 0x4032ec
cmp dword [ebx], 0
je 0x4032ec
dec esi
jmp 0x4032d5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4041f4
Capabilities:
Query or enumerate registry value

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

Function at 0x4050a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47604c], 0
je 0x405109
cmp word [0x476220], 0xd7b2
jne 0x4050d1
cmp dword [0x476228], 0
jbe 0x4050d1
mov eax, 0x47621c
call dword [0x476238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call fcn.00401224
push eax
call fcn.0040125c
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405130
push 0xfffffffffffffff5
call fcn.00401224
push eax
call fcn.0040125c
pop edx
ret
cmp byte [0x47302c], 0
jne 0x405125
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406824
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call fcn.004012b4
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4068a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4068a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406930
xor eax, eax
push ebp
push 0x406929
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406660
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40690e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406a90
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40690e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406930
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call fcn.004012ec
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call fcn.004012d4
push eax
call fcn.004012ac
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406a4a
cmp byte [ebp - 0xd], 0
jne 0x406977
cmp byte [ebp - 0x12], 0
je 0x406a4a
lea eax, [ebp - 0x11d]
push eax
call fcn.004012f4
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406990
dec ebx
cmp byte [ebx], 0x2e
je 0x40699f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40698f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406a4a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4069dc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call fcn.004012ec
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.004012dc
mov esi, eax
test esi, esi
jne 0x406a4a
cmp byte [ebp - 0xd], 0
je 0x406a4a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.004012ec
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.004012dc
mov esi, eax
test esi, esi
jne 0x406a4a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.004012ec
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.004012dc
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4090c2
test eax, edx
je 0x4090c5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409085
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4090ab
add ecx, 4
js 0x40909b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4090a8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4090d1
test edx, edx
jne 0x409078
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004056b8
push eax
call fcn.00407514
cmp eax, 0xffffffff
je 0x409951
test al, 0x10
je 0x409955
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004056b8
push eax
call fcn.00407514
cmp eax, 0xffffffff
je 0x409975
test al, 0x10
jne 0x409979
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409980
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.004056b8
push eax
call fcn.0040760c
test eax, eax
jne 0x4099a2
call fcn.00407524
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c560
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call fcn.00407534
test eax, eax
jle 0x40c599
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405318
jmp 0x40c5a2
mov eax, ebx
mov edx, esi
call fcn.0040527c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c5ac
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 fcn.00407534
test eax, eax
jle 0x40c5ce
movzx eax, byte [esp]
jmp 0x40c5d0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cc60
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cad8
mov eax, dword [0x47539c]
cmp byte [eax], 0
je 0x40ccdc
mov eax, dword [0x47519c]
call fcn.00403684
call fcn.00402ffc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004078bc
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409ca8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call fcn.0040755c
push eax
call fcn.0040764c
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cd24
push 0xfffffffffffffff4
call fcn.0040755c
push eax
call fcn.0040764c
jmp 0x40cd12
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x475144]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4787f8]
call fcn.00406608
push eax
call fcn.00407bf4
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call fcn.00407c0c
add esp, 0x444
ret

Function at 0x40d5d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d6a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004052c0
lea eax, [ebp - 4]
call fcn.00405710
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004056b8
push eax
call fcn.00407664
mov ebx, eax
test ebx, ebx
je 0x40d690
mov eax, ebx
call fcn.00402ea0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d689
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 - 4]
call fcn.004056b8
push eax
call fcn.0040765c
test eax, eax
je 0x40d673
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d6b8
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040766c
test eax, eax
je 0x40d673
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d690
mov eax, dword [ebp - 0x10]
call fcn.00402ebc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6ad
lea eax, [ebp - 4]
call fcn.00405228
ret

Function at 0x41fb48
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47a9ec
cmp dword [edi], 0
jne 0x41fbc4
push 0x40
push 0x1000
push 0x1000
push 0
call fcn.00407634
mov esi, eax
mov eax, dword [0x47a9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x473b34
mov ecx, 2
call fcn.0040309c
mov edx, 0x41fb20
lea eax, [esi + 5]
call fcn.0041fb40
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fb40
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fb99
mov dword [0x47a9e8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8