joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9a3830
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x64a00d
lea edi, [esi - 0x24900d]
push edi
or ebp, 0xffffffff
jmp 0x9a3852
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9a3859
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9a3848
mov eax, 1
add ebx, ebx
jne 0x9a386b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9a3860
jne 0x9a387c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9a3860
xor ecx, ecx
sub eax, 3
jb 0x9a3890
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9a3902
mov ebp, eax
add ebx, ebx
jne 0x9a389b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x9a38a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x9a38cc
inc ecx
add ebx, ebx
jne 0x9a38b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9a38ad
jne 0x9a38c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9a38ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9a38ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9a38dd
jmp 0x9a384e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9a38ec
add edi, ecx
jmp 0x9a384e
pop esi
mov edi, esi
mov ecx, 0x16ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9a390a
cmp byte [edi], 0x11
jne 0x9a390a
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 0x9a390f
lea edi, [esi + 0x59f000]
mov eax, dword [edi]
or eax, eax
je 0x9a397e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5a602c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5a6084]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9a393c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5a608c]
or eax, eax
je 0x9a3978
mov dword [ebx], eax
add ebx, 4
jmp 0x9a3959
call dword [esi + 0x5a6088]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x9a39af
cmp al, 0xef
ja 0x9a39a2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x9a3984
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x9a3991
mov ebp, dword [esi + 0x5a6090]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x9a39e3
sub esp, 0xffffff80
jmp 0x4169bc
Function at 0x418b47
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x581a60]
xor eax, esp
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0x20]
push ebx
push edi
lea eax, [esp + 0x2c]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [0x536724]
fld qword [esi + 0x88]
mov eax, dword [esp + 0x34]
fmul qword [0x560e70]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
lea ebx, [eax - 0x50]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call fcn.0052b417
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x7c], edi
jg 0x418c0f

Function at 0x418c92
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esi + 0x7c]
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov dword [esp + 8], edx
fild dword [esp + 8]
fmul qword [esi + 0x88]
call fcn.0052b417
mov ecx, dword [esp + 0x3c]
pop edi
pop ebx
xor ecx, esp
call 0x5250f2
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test edi, edi
js 0x418cb5
cmp edi, dword [esi + 0x7c]
jge 0x418cb5
mov edx, dword [esi + 0x78]
mov ecx, dword [edx + edi*4]
mov edx, dword [esp + 0x10]
push 1
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
sub ebx, eax
push ebx
push edx
mov dword [esp + 0x18], ecx
push eax
add ecx, 0x138
call fcn.0042d559
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0042d559
fld qword [esi + 0x88]
fmul qword [0x560e70]
call fcn.0052b417
mov ebx, dword [0x536728]
push eax
push 0
lea eax, [esp + 0x14]
push eax
call ebx
fld qword [esi + 0x88]
fmul qword [0x560e70]
or eax, 0x560e70
or eax, 0x560e70
call fcn.0052b417
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
call ebx
inc edi
cmp edi, dword [esi + 0x7c]
jl 0x418c07
jmp 0x418bd7
call fcn.00431780
int3

Function at 0x45d477
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x581a60]
xor eax, esp
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0x20]
push ebx
push edi
lea eax, [esp + 0x2c]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
and al, 0x38
Function at 0x474477
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x581a60]
xor eax, esp
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0x20]
push ebx
push edi
lea eax, [esp + 0x2c]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [0x536724]
fld qword [esi + 0x88]
mov eax, dword [esp + 0x34]
fmul qword [0x560e70]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
lea ebx, [eax - 0x50]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call fcn.00586d47
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x7c], edi
jg 0x47453f
mov eax, dword [esi + 0x7c]
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov dword [esp + 8], edx
fild dword [esp + 8]
fmul qword [esi + 0x88]
call fcn.00586d47
mov ecx, dword [esp + 0x3c]
pop edi
pop ebx
xor ecx, esp
call fcn.00580a22
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test edi, edi
js 0x4745e5
cmp edi, dword [esi + 0x7c]
jge 0x4745e5
mov edx, dword [esi + 0x78]
mov ecx, dword [edx + edi*4]
mov edx, dword [esp + 0x10]
push 1
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
sub ebx, eax
push ebx
push edx
mov dword [esp + 0x18], ecx
push eax
add ecx, 0x138
call int.00488e89
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call int.00488e89
fld qword [esi + 0x88]
fmul qword [0x560e70]
call fcn.00586d47
mov ebx, dword [0x536728]
push eax
push 0
lea eax, [esp + 0x14]
push eax
call ebx
fld qword [esi + 0x88]
fmul qword [0x560e70]
call fcn.00586d47
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
call ebx
inc edi
cmp edi, dword [esi + 0x7c]
jl 0x474537
jmp 0x474507
call 0x48d0b0
int3

Function at 0x48216f
Capabilities:
Encode data using xor

Disassembly:
rol edi, 0x1c
xchg ebp, eax
jnp 0x4821a0
jp 0x48211d
call [esi + edx*4 + 0x2b5eb46f]
imul edx, dword [edi + edi + 0x27], 0x5b7346df
pop ebx
mov dword [edi - 0x75], esi
popfd
push eax
int 0x2d
mov cl, dl
js 0x482183
mov bh, 0xc2
mov dword [0xeb98f95], eax
and al, 0x6d
in eax, 0xc6
or al, 0x89
mov dh, 0x21
xor edi, edi
dec ecx
sti
dec dword [ecx - 5]
push 0xffffffffffffff85
or dword [edi], ebx
invalid

Function at 0x486d94
Capabilities:
Encode data using xor

Disassembly:
dec ebp
setnp byte [ebx + 0x7e]
popfd
insb byte es:[edi], dx
xchg ebx, eax
arpl word [ecx - 0x33505c83], sp
mov al, byte [0xe2225540]
in al, 0x20
cmp ah, cl
insb byte es:[edi], dx
cmpsd dword [esi], dword es:[edi]
xchg ebp, eax
mov ah, 0x6e
mov al, byte [0x283c825f]
shr dword [ebp + 0x5f607e9c], cl
mov cl, dh
invalid
Function at 0x48a939
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0xfa
or al, byte [eax + eax]
out 0x2b, eax
test dword [ebp - 0x4d], esi
lcall 0xb465, 0xbe10729d
popfd
jb 0x48a94c
mov esi, 0x3091b465
outsd dx, dword [esi]
add dword [ebp + 0x5c], ebx
popfd
jb 0x48a94c
adc byte [esi + 0x3091b465], bh
mov esi, 0x3091b465
outsd dx, dword [esi]
add dword [ebp + 0x5c], ebx
aad 0x12
cmpsb byte [esi], byte es:[edi]
sahf
mov esi, 0xbdabc361
xor eax, 0x1ff08409
stosd dword es:[edi], eax
mov ebp, 0xf0840935
pop ds
wait
adc ebp, dword [edx - 0x1e7b9d4]
imul eax, ecx, 0x7fe87438
jo 0x48a92e
jecxz 0x48a9bb
js 0x48a9cf
xor byte [ebx + 0x47719d2c], cl
xor dword [ebx], esi
jecxz 0x48a93b
cmp eax, 0xb930bc34
cmp dword [ecx + 0x29f636d5], ebx
mov esp, 0x9939b930
aad 0x36
imul byte [ecx]
jmp 0x48a98e
cdq
popfd
fld dword [ecx + 0x266b337d]
add byte [esp + ebx*8 - 0x30], dl
xchg edi, eax
movsd dword es:[edi], dword [esi]
or edi, edx
movsb byte es:[edi], byte [esi]
nop
stosb byte es:[edi], al
cmp ecx, esi
arpl word [ebx - 0x4447713e], sp
inc ebx
sub dl, byte [esp + edi*2]
xchg esp, eax
aad 0x72
mov al, byte [0x608ef6aa]
into
mov edx, ebx
lea ecx, [esi - 0x11]
push 0x51440666
push es
inc esp
push ecx
pop esp
mov dword [0x5f356985], eax
or al, 0x60
leave
push 0x67
jle 0x48a973
dec ebp
outsd dx, dword [esi]
out dx, al
mov byte [edi + 0x19], bh
out 0x91, al
aam 0x79
dec ebx
enter 0x9c0, 0xfffffffffffffffc
xor esp, dword [edi - 0x78]
fisub word [0x3403a3d2]
mov ch, 0x20
pushfd
dec ebp
sub byte [ebx + 0x459016e2], ch
jbe 0x48a980
psrad mm7, qword [edi - 0x6c790dad]
invalid

Function at 0x49c35f
Capabilities:
Encode data using xor

Disassembly:
fnstsw word [ebx + ebx]
test dl, 0x5a
cmp dword ds:[edi + 0x1e547e14], 0x45621247
cdq
jmp dword [edx]
lea esi, [esi + 0x44]
inc eax
lcall 0x6601, 0x3e4bc9f
fadd st(1), st(0)
pop edx
popal
mov byte [0xc0969e06], al
inc ebx
inc ecx
jge 0x49c31c
push esi
aaa
push cs
stosb byte es:[edi], al
mov dl, byte [eax + 0x28]
lodsd eax, dword [esi]
loope 0x49c30a
test ecx, ebp
cmc
lcall 0x9e02, 0xc34ba3af
or ch, dl
leave
in eax, 0x97
and byte [ecx - 0x72], al
mov al, byte [0xffd1c8d2]
sar edi, 1
insd dword es:[edi], dx
ja 0x49c3b7
test dword [eax - 0x2e700b8], 0x881f855d
cmp byte [eax + 0x55], dl
sti
lodsd eax, dword [esi]
pop ecx
xlatb
push esp
inc edi
mov edx, 0x9e06283a
cwde
mov byte [eax], dh
dec edx
lcall 0xa50e, 0x13718143
adc ecx, dword [esi]
movsd dword es:[edi], dword [esi]
adc bh, byte [eax - 0x536d6be9]
xor al, 0xf7
sub al, 2
jge 0x49c3bb
sub edi, ebx
jge 0x49c396
invalid
Function at 0x4a2e37
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x581a60]
xor eax, esp
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0x20]
push ebx
push edi
lea eax, [esp + 0x2c]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [0x536724]
fld qword [esi + 0x88]
mov eax, dword [esp + 0x34]
fmul qword [0x560e70]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
lea ebx, [eax - 0x50]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call fcn.005b5707
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x7c], edi
jg 0x4a2eff
mov eax, dword [esi + 0x7c]
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov dword [esp + 8], edx
fild dword [esp + 8]
fmul qword [esi + 0x88]
call fcn.005b5707
mov ecx, dword [esp + 0x3c]
pop edi
pop ebx
xor ecx, esp
call fcn.005af3e2
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test edi, edi
js fcn.004a2fa5
cmp edi, dword [esi + 0x7c]
jge fcn.004a2fa5
mov edx, dword [esi + 0x78]
mov ecx, dword [edx + edi*4]
mov edx, dword [esp + 0x10]
push 1
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
sub ebx, eax
push ebx
push edx
mov dword [esp + 0x18], ecx
push eax
add ecx, 0x138
call fcn.004b7849
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004b7849
fld qword [esi + 0x88]
fmul qword [0x560e70]
call fcn.005b5707
mov ebx, dword [0x536728]
push eax
push 0
lea eax, [esp + 0x14]
push eax
call ebx
fld qword [esi + 0x88]
fmul qword [0x560e70]
call fcn.005b5707
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
call ebx
inc edi
cmp edi, dword [esi + 0x7c]
jl 0x4a2ef7
jmp 0x4a2ec7

Function at 0x4ac344
Capabilities:
Encode data using xor

Disassembly:
xor cl, bl
aas
and eax, dword [ecx - 0x48]
stosd dword es:[edi], eax
pop ebp
cmp esi, dword [eax]
cmp bl, dh
aaa
xlatb
dec eax
pop esi
xor bl, al
adc dword [ecx + edi*4 - 0x10], edx
not byte [ebp + 0x3fef1c83]
shl dword [esi - 0x46], cl
inc esi
and al, ch
xor edx, edi
pop eax
std
pop esi
push 0x37
aam 0xc
cmp al, 0x20
mov ecx, 0x1f3aa36e
xor eax, dword [ecx - 0x26814b15]
cmp al, 0xc
aaa
fst qword [ebp - 0x1e5ca166]
mov dword [0x8c5180c3], eax
push ds
mov bh, byte [edx]
jecxz 0x4ac302
mov byte [0x643ca8c], al
salc
add byte [edi + 0x7a41caf9], bl
mov edx, 0xe31f9a98
pop edx
sbb eax, 0x89ce4ee8
int1
out dx, eax
or eax, 0x492cd155
in eax, 0xc7
mov byte [0xaae28b8b], al
sahf
lds ebp, [eax + ebp]
cdq
pop edx
daa
xor ch, byte [ebx + 0x25]
jae 0x4ac2db
shr dword [eax - 8], cl
retf
Function at 0x4ba651
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2410
cmp edx, dword [eax]
je 0x4ba673
add eax, 8
inc ecx
cmp eax, 0x4c24a0
jl 0x4ba664
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2410]
jne 0x4ba7a1
mov eax, dword [0x4c6d9c]
cmp eax, 1
je 0x4ba77b
test eax, eax
jne 0x4ba6a4
cmp dword [0x4c2338], 1
je 0x4ba77b
cmp edx, 0xfc
je 0x4ba7a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba6db
lea eax, [ebp - 0x1a4]
push 0x4bf990
add byte [eax - 0x18], dl
push edi
or dword [eax], eax
add byte [ecx + 0x59], bl
lea eax, [ebp + 8]
lea esi, [esi + 0x4c2414]
push 0
push eax
push dword [esi]
call fcn.004bb4c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
Function at 0x4029f4
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.00403f80
test esi, esi
jne 0x402a2a
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.00404070
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030b8
Capabilities:
Query or enumerate registry value

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

Function at 0x403e04
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45504c], 0
je 0x403e65
cmp word [0x455220], 0xd7b2
jne 0x403e2d
cmp dword [0x455228], 0
jbe 0x403e2d
mov eax, 0x45521c
call dword [0x455238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45306c
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 0x403e8c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x453030], 0
jne 0x403e81
push 0
push 0x453064
push 0x45306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405570
Capabilities:
Get geographical location

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 sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405694
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054e7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405694
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054e7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4056b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405570
xor eax, eax
push ebp
push 0x405569
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004052ac
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 0x40554e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4056d0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40554e
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 0x405570
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 sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40568a
cmp byte [ebp - 0xd], 0
jne 0x4055b7
cmp byte [ebp - 0x12], 0
je 0x40568a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4055d0
dec ebx
cmp byte [ebx], 0x2e
je 0x4055df
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4055cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40568a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40561c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40568a
cmp byte [ebp - 0xd], 0
je 0x40568a
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 sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40568a
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 sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405d5c
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 0x405dc2
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.004041f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c7c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405dac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dc9
lea eax, [ebp - 0x10]
call fcn.00403f80
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404440
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408479
test al, 0x10
jne 0x40847d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40af04
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 0x40af3d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404070
jmp 0x40af46
mov eax, ebx
mov edx, esi
call fcn.00403fd4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b5f8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b470
mov eax, dword [0x454070]
cmp byte [eax], 0
je 0x40b674
mov eax, dword [0x453e88]
call fcn.00402ae8
call fcn.00402834
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.00408744
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 0x40b6bc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b6aa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x453e34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x455668]
call fcn.00405270
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