joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e8540
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4e8548
push ecx
push ebx
push esi
xor edx, edx
push ebp
push 0x4e8728
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004e7c90
lea edx, [ebp - 0x14]
mov eax, dword [0x4f3738]
mov eax, dword [eax]
call fcn.004b456c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00413b80
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [0x4f9334]
call fcn.00413b80
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00406e70
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00413f48
lea edx, [ebp - 8]
mov eax, dword [0x4f9334]
call fcn.00413e54
lea eax, [ebp - 0xc]
mov edx, dword [0x4f9338]
call fcn.00406ab0
call fcn.004045b8
mov esi, eax
test esi, esi
jle 0x4e865c
mov ebx, 1
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404618
mov edx, dword [ebp - 0x1c]
mov eax, 0x4e8744
call fcn.004074b4
test eax, eax
jg 0x4e8609
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00404618
mov edx, dword [ebp - 0x20]
mov eax, 0x4e8754
call fcn.004074b4
test eax, eax
jle 0x4e8632
push dword [ebp - 0xc]
push 0x4e8764
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00404618
push dword [ebp - 0x24]
push 0x4e8778
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00407014
jmp 0x4e8654
push dword [ebp - 0xc]
push 0x4e8744
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00404618
push dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407014
inc ebx
dec esi
jne 0x4e85d3
mov eax, dword [ebp - 4]
call fcn.00414050
push 0
mov ecx, 0x4e8788
mov edx, 0x4e879c
mov eax, dword [0x4f934c]
mov ebx, dword [eax]
call dword [ebx + 0x14]
test al, al
je 0x4e86c2
push 0
mov eax, dword [ebp - 4]
call fcn.00406ae8
push eax
push 0x4e87b8
push dword [ebp - 8]
push 0x4e87d0
push dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00407014
mov eax, dword [ebp - 0x2c]
call fcn.00406ae8
push eax
push 0x4e87d8
push 0x4e87e0
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x4e86fd
push 1
push dword [ebp - 4]
push dword [ebp - 8]
push 0x4e8744
push dword [ebp - 0xc]
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00407014
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov ecx, 0
call fcn.00406ca0
mov eax, dword [ebp - 0x30]
call fcn.004065cc
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e872f
lea eax, [ebp - 0x34]
call fcn.00406a4c
lea eax, [ebp - 0x30]
call fcn.00406154
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.00406a54
ret

Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034
Function at 0x403369
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403396
mov ecx, dword [0x426b78]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4188a4], eax
push dword [0x40a5c8]
call dword [0x40812c]
push 4
pop esi
push esi
call fcn.00403494
cmp eax, edi
jl 0x40348d
lea eax, [ebp - 4]
mov ebx, dword [0x408128]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a5c8]
call ebx
test eax, eax
je 0x40348a
cmp dword [ebp - 4], esi
jne 0x40348a
push dword [ebp + 8]
add dword [0x4188a4], esi
call fcn.00403494
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40348d
cmp dword [ebp + 0x10], edi
jne 0x403459
cmp dword [ebp + 8], edi
jle 0x403485
mov esi, 0x414860
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403409
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a5c8]
call ebx
test eax, eax
je 0x40348a
cmp edi, dword [ebp - 4]
jne 0x40348a
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [0x408124]
test eax, eax
je 0x403455
cmp dword [ebp + 0x14], edi
jne 0x403455
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4188a4], eax
cmp dword [ebp + 8], 0
jg 0x4033fc
jmp 0x403485
push 0xfffffffffffffffe
jmp 0x40348c
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403464
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a5c8]
call ebx
test eax, eax
je 0x40348a
mov eax, dword [ebp - 4]
add dword [0x4188a4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40348d
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403494
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [0x4080a0]
mov esi, dword [0x4188a4]
mov edi, eax
sub esi, dword [0x40c7d4]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x40366a
push dword [0x4208b4]
call fcn.004036a7
push ebp
push ebp
push dword [0x40c7d4]
push dword [0x40a5c8]
call dword [0x40812c]
mov dword [0x4208b0], esi
mov dword [0x4188a0], ebp
mov eax, dword [0x4188a8]
mov ebx, 0x4000
sub eax, dword [0x4208b4]
cmp eax, ebx
jg 0x403507
mov ebx, eax
mov esi, 0x414860
push ebx
push esi
call fcn.00403675
test eax, eax
je 0x403635
add dword [0x4208b4], ebx
mov dword [0x40c7f0], esi
mov dword [0x40c7f4], ebx
cmp dword [0x426b28], ebp
je 0x403598
cmp dword [0x426bc0], ebp
jne 0x403598
cmp dword [esp + 0x10], ebp
je 0x403565
mov eax, dword [0x4208b0]
push ebp
sub eax, dword [0x4188a4]
sub eax, dword [esp + 0x20]
add eax, dword [0x40c7d4]
mov dword [0x4188a0], eax
call fcn.004065a0
jmp 0x403598
call dword [0x4080a0]
cmp eax, edi
jbe 0x403598
mov eax, dword [0x426b24]
neg eax
sbb eax, eax
not eax
and eax, 0x40a78c
push eax
push 0x402fc4
push ebp
push 0x6f
push dword [0x426b20]
call dword [0x4081e8]
mov dword [esp + 0x10], eax
mov ecx, 0x40c7d8
mov dword [0x40c7f8], 0x40c860
mov dword [0x40c7fc], 0x8000
call fcn.00406661
test eax, eax
jl 0x40363e
mov esi, dword [0x40c7f8]
mov eax, 0x40c860
sub esi, eax
je 0x4035ff
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x40a5c8]
call dword [0x408124]
test eax, eax
je 0x40363a
cmp esi, dword [esp + 0x14]
jne 0x40363a
add dword [0x40c7d4], esi
cmp dword [0x40c7f4], ebp
jne 0x40352d
jmp 0x40360b
cmp dword [0x40c7f4], ebp
jne 0x40363e
cmp ebx, ebp
je 0x40363e
mov eax, dword [0x4188a4]
mov ecx, eax
sub ecx, dword [0x40c7d4]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4034f1
push ebp
push ebp
push eax
push dword [0x40a5c8]
call dword [0x40812c]
jmp 0x403643
or eax, 0xffffffff
jmp 0x40366c
push 0xfffffffffffffffe
jmp 0x403640
push 0xfffffffffffffffd
pop eax
jmp 0x40366c
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x40366a
mov eax, dword [0x4208b0]
push ebp
push ebp
push 0x113
push esi
mov dword [0x4188a0], eax
call dword [0x408248]
push esi
call dword [0x4081ec]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4058d6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x424500], 0x44
call dword [0x408080]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4058fa
test al, 0x10
jne 0x4058fd
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x424500
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [0x4080d0]
test eax, eax
je 0x405928
push dword [ebp - 0xc]
call dword [0x408060]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405990
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405c89
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4059c4
push edi
call dword [0x408140]
neg eax
sbb eax, eax
inc eax
add dword [0x426ba8], eax
jmp 0x405ba3
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4059e2
test eax, eax
je 0x405b22
test byte [ebp + 0xc], 2
je 0x405b22
mov esi, 0x423500
push edi
push esi
call fcn.004060b6
test ebx, ebx
je 0x4059ff
push 0x40aa04
push esi
call fcn.004060d2
jmp 0x405a05
push edi
call fcn.00405bf0
push 0x40a25c
push edi
call fcn.004060d2
push edi
call fcn.004060cc
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [0x40813c]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405b18
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405bd4
cmp byte [eax], 0
je 0x405a56
cmp byte [ebp - 0x18], 0
je 0x405a56
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405a74
mov al, byte [esi + 1]
test al, al
je 0x405af7
cmp al, 0x2e
jne 0x405a74
cmp byte [esi + 2], 0
je 0x405af7
push esi
push ebx
call fcn.004060b6
test byte [ebp - 0x148], 0x10
je 0x405a99
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405af7
push dword [ebp + 0xc]
push edi
call fcn.00405990
jmp 0x405af7
push edi
push 0x40a9e8
call fcn.0040650a
pop ecx
pop ecx
push edi
call fcn.00405d6d
push edi
call dword [0x408140]
test eax, eax
push edi
jne 0x405af0
test byte [ebp + 0xc], 4
je 0x405adc
push 0x40a9c4
call fcn.0040650a
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004053bd
push 0
push edi
call fcn.00405e03
jmp 0x405af7
push 0x40a9a4
call fcn.0040650a
inc dword [0x426ba8]
pop ecx
pop ecx
jmp 0x405af7
push 0xfffffffffffffff2
call fcn.004053bd
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [0x408138]
test eax, eax
jne 0x405a34
push dword [ebp + 8]
call dword [0x408134]
cmp dword [ebp - 4], 0
je 0x405b22
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405ba3
cmp dword [ebp - 8], esi
push edi
jne 0x405b44
push 0x40a978
call fcn.0040650a
inc dword [0x426ba8]
pop ecx
pop ecx
jmp 0x405ba3
call fcn.00406538
test eax, eax
je 0x405ba3
push edi
call fcn.00405ba9
push edi
push 0x40a958
call fcn.0040650a
pop ecx
pop ecx
push edi
call fcn.00405d6d
push edi
call dword [0x4080d4]
test eax, eax
push edi
jne 0x405b9c
test byte [ebp + 0xc], 4
je 0x405b95
push 0x40a930
call fcn.0040650a
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004053bd
push esi
push edi
call fcn.00405e03
jmp 0x405ba3
push 0x40a90c
jmp 0x405b35
push 0xffffffffffffffe5
call fcn.004053bd
pop edi
pop esi
leave
ret 8
Function at 0x405c89
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x423900
push esi
call fcn.004060b6
push esi
call fcn.00405c3c
mov edi, eax
test edi, edi
jne 0x405caa
xor eax, eax
jmp 0x405cfc
push edi
call fcn.004062f2
test byte [0x426b30], 0x80
je 0x405cc3
mov al, byte [edi]
test al, al
je 0x405ca6
cmp al, 0x5c
je 0x405ca6
sub edi, esi
jmp 0x405cdb
call fcn.00406538
test eax, eax
je 0x405cd5
test byte [eax], 0x10
je 0x405ca6
push esi
call fcn.00405bf0
push esi
call fcn.004060cc
cmp eax, edi
push esi
jg 0x405cc7
call fcn.00405ba9
push esi
call dword [0x408080]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d6d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [0x408080]
cmp eax, 0xffffffff
je 0x405d89
and al, 0xfe
push eax
push dword [esp + 8]
call dword [0x40808c]
ret 4

Function at 0x405d8c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [0x408080]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [0x408094]
ret 0xc
Function at 0x405e03
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40aa34
push 0x40a88c
call fcn.00406576
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405e2f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f6e
mov ebx, dword [0x408070]
mov dword [0x424688], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x424688
je 0x405e73
push 1
push 0
push esi
call fcn.00405d8c
push eax
call dword [0x408060]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f74
cmp eax, edi
jg 0x405f74
mov esi, 0x424100
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f74
cmp eax, edi
jg 0x405f74
push esi
push ebp
push 0x40aa2c
push 0x423d00
call dword [0x408200]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [0x4080b4]
push 0x40aa1c
push esi
call fcn.004060d2
push 4
push 0xc0000000
push esi
call fcn.00405d8c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405f6e
push 0
push ebp
call dword [0x408098]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [0x4080f8]
mov esi, eax
test esi, esi
je 0x405f67
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [0x408128]
test eax, eax
je 0x405f67
cmp edi, dword [esp + 0x18]
jne 0x405f67
push 0x40aa10
push esi
call fcn.00405d01
test eax, eax
jne 0x405f7b
lea eax, [esi + edi]
push 0x40aa10
push eax
call fcn.004060b6
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x423d00
push eax
call fcn.00405d4d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [0x40812c]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [0x408124]
push esi
call dword [0x4080f4]
push ebp
call dword [0x408060]
inc dword [0x426bb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aa0c
push eax
call fcn.00405d01
test eax, eax
je 0x405f32
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405fa2
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405f97
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405f34

Function at 0x40638b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4063b0
mov eax, dword [0x40a908]
cmp eax, 0xffffffff
je 0x4063a7
push eax
call dword [0x408060]
or dword [0x40a908], 0xffffffff
jmp 0x406423
cmp dword [0x4252a0], ebx
je 0x406423
cmp byte [0x424ea0], bl
je 0x4063ef
cmp dword [0x40a908], 0xffffffff
jne 0x4063f8
push 4
push 0x40000000
push 0x424ea0
call fcn.00405d8c
cmp eax, 0xffffffff
mov dword [0x40a908], eax
je 0x406423
push 2
push ebx
push ebx
push eax
call dword [0x40812c]
cmp dword [0x40a908], 0xffffffff
je 0x406423
push esi
mov esi, 0x425ac0
push 0x40aad8
push esi
call fcn.004060d2
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004060cc
push eax
push esi
push dword [0x40a908]
call dword [0x408124]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4065d3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x424a8c], 0
push esi
jne 0x40660a
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 0x4065e4
mov dword [ecx*4 + 0x424a88], eax
inc ecx
cmp ecx, 0x100
jl 0x4065df
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40663b
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 + 0x424a88]
xor eax, esi
inc ecx
dec edx
jne 0x40661d
pop edi
not eax
pop esi
ret 0xc
Function at 0x402ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x486020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403088
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403068
xor eax, eax
push ebp
push 0x403061
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 0x4030a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403068
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x486020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x486020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403dd4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e044], 0
je 0x403e35
cmp word [0x48e218], 0xd7b2
jne 0x403dfd
cmp dword [0x48e220], 0
jbe 0x403dfd
mov eax, 0x48e214
call dword [0x48e230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48606c
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 0x403e5c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x486030], 0
jne 0x403e51
push 0
push 0x486064
push 0x48606c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x40520c
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 sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40543c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x40528f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40543c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x40528f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405458
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x405318
xor eax, eax
push ebp
push 0x405311
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405054
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_1
test eax, eax
je 0x4052f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405478
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4052f6
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 0x405318
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405432
cmp byte [ebp - 0xd], 0
jne 0x40535f
cmp byte [ebp - 0x12], 0
je 0x405432
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405378
dec ebx
cmp byte [ebx], 0x2e
je 0x405387
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405377
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405432
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053c4
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 0x405432
cmp byte [ebp - 0xd], 0
je 0x405432
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 0x405432
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 0x405b04
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 0x405b6a
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.004041c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bb4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b54
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b71
lea eax, [ebp - 0x10]
call fcn.00403f50
ret

Function at 0x40aca0
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 0x40acd9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404040
jmp 0x40ace2
mov eax, ebx
mov edx, esi
call fcn.00403fa4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b394
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b20c
mov eax, dword [0x48d6d8]
cmp byte [eax], 0
je 0x40b410
mov eax, dword [0x48d4e0]
call fcn.00402a20
call fcn.00402844
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.00408500
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b458
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x40b446
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48d48c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48e660]
call fcn.00405018
push eax
call sub.user32.dll_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA
add esp, 0x444
ret