joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10106b50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1025faa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x102f8be4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x10106b99
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
cmp dword [0x102f254c], 0
jne 0x10106bb0
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x10106bfd
mov eax, dword [esi]
test eax, eax
je 0x10106b82
cmp dword [esi + 4], 0
je 0x10106b82
push eax
call fcn.10113630
add esp, 4
push dword [esi + 4]
call fcn.10113630
mov eax, dword [esi + 0xc]
add esp, 4
test eax, eax
je 0x10106bee
push eax
call fcn.10113630
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x10106c35
push eax
call fcn.10113630
jmp 0x10106c32
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
call fcn.10113630
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
call fcn.10113630
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
call fcn.10113630
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.10113630
add esp, 4
push 8
call fcn.10113630
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10106c70
push dword [ebp + 0x18]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10113630
mov dword [edi], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101a1930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102615ee
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x102f8be4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
call sym.AIDE.dll_public:_void___thiscall_AIDE::PaletteInfo::constructor_void_
mov ecx, dword [edi + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.101a3000
mov dword [esi], eax
lea ecx, [edi + 0x28]
mov dword [esi + 4], 3
mov dword [esi + 8], 0
mov dword [ecx], 8
mov dword [edi + 0x30], 8
mov dword [edi + 0x2c], 8
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 8
mov ecx, dword [edi + 0x14]
call fcn.101a2fe0
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1021a3d0
Capabilities:
Terminate process

Disassembly:
cmp dword [str._AdobeIP0000539_], 0
jne 0x1021a3e1
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
jmp 0x1025d420
movss xmm5, dword [0x102d91f4]
movss xmm4, dword [0x102d91fc]
movss xmm6, dword [0x102d91f0]
movss xmm7, dword [0x102d91e8]
movss xmm3, dword [0x102926c8]
push esi
xor esi, esi
nop dword [eax + eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
sub esp, 8
addsd xmm0, qword [eax*8 + 0x102e4250]
cvtpd2ps xmm2, xmm0
movaps xmm0, xmm4
movaps xmm1, xmm2
mulss xmm1, xmm5
subss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10113630
movaps xmm0, xmm2
mov ecx, eax
mulss xmm0, xmm6
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10113630
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, xmm7
add ecx, eax
mov dword [esi*4 + 0x10306650], ecx
mulss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10113630
movaps xmm0, xmm2
mov edx, eax
mulss xmm0, dword [0x102d91f8]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10113630
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, dword [0x102d91e0]
add eax, edx
mov dword [esi*4 + 0x10306e50], eax
mulss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10113630
movaps xmm0, xmm2
mov ecx, eax
mulss xmm0, dword [0x102d91ec]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10113630
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, dword [0x102d91e4]
add eax, ecx
mov dword [esi*4 + 0x10306a50], eax
mulss xmm0, xmm3
subss xmm0, xmm4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10113630
movaps xmm0, xmm2
mov dword [esi*4 + 0x10307250], eax
mulss xmm0, dword [0x102d9204]
mov dword [esi*4 + 0x10307a50], edx
mov dword [esi*4 + 0x10307650], ecx
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10113630
movaps xmm0, xmm2
mov dword [esi*4 + 0x10307e50], eax
mulss xmm0, dword [0x102d9208]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10113630
movaps xmm0, xmm2
mov dword [esi*4 + 0x10308250], eax
mulss xmm0, dword [0x102d920c]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10113630
mov dword [esi*4 + 0x10308650], eax
mulss xmm2, dword [0x102d9200]
cvtps2pd xmm0, xmm2
movsd qword [esp], xmm0
call fcn.10113630
mov dword [esi*4 + 0x10308a50], eax
add esp, 8
inc esi
cmp esi, 0x100
jb 0x1025d450
pop esi
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00431219
Function at 0x423cf0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov dword [ebp - 0x14], ecx
xor esi, esi
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call fcn.0041ef2d
push 0x13c
call fcn.00428bb9
cmp eax, esi
pop ecx
je 0x423d3b
push 0x1a
lea esi, [eax + 4]
pop ecx
mov edi, esi
mov dword [eax], ecx
mov ebx, ecx
mov ecx, edi
call fcn.0041ef2d
add edi, 0xc
dec ebx
jne 0x423d27
mov dword [ebp - 8], esi
xor esi, esi
jmp 0x423d3e
mov dword [ebp - 8], esi
cmp dword [ebp - 8], esi
je 0x423d5c
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call esi
mov ebx, eax
push ebx
call fcn.00428bb9
mov edi, eax
pop ecx
test edi, edi
jne 0x423d67
inc dword [0x482748]
jmp 0x423f0d
push edi
push ebx
call esi
push str._HD_space_placeholder_
lea ecx, [ebp - 0x4c]
mov esi, edi
call fcn.0041ef9d
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.00422668
cmp byte [edi], 0
je 0x423e59
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push esi
call fcn.0041f0d0
mov ecx, dword [ebp - 4]
call fcn.0041fee9
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x423e3f
inc dword [ebp - 0xc]
push str.
lea ecx, [ebp - 0x28]
call fcn.0041f0d0
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.0041f283
push 9
lea ecx, [ebp - 0x28]
call fcn.0041f1b6
mov ecx, dword [ebp - 4]
push 1
call fcn.0041fee9
push eax
call fcn.0040f179
mov ebx, edx
pop ecx
cmp ebx, dword [0x482b14]
pop ecx
mov dword [ebp - 0x1c], eax
ja 0x423e07
jb 0x423e04
cmp eax, dword [0x482b10]
jae 0x423e07
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.0041ef2d
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.00420c31
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041f283
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.00422668
lea ecx, [ebp - 0x34]
call fcn.0041f063
add dword [ebp - 4], 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x423d95
push edi
call fcn.00428bae
pop ecx
mov ecx, dword [ebp - 8]
push 3
call fcn.0041bd53
push 0x482f24
lea ecx, [ebp - 0x28]
call fcn.0041f13e
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 0x431d7c
call fcn.0041f205
lea ecx, [ebp - 0x40]
call fcn.0041ef2d
lea eax, [ebp - 0x40]
push eax
push dword [0x482b14]
push dword [0x482b10]
call fcn.00420c31
add esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041f283
push 9
lea ecx, [ebp - 0x28]
call fcn.0041f1b6
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jne 0x423ed2
inc dword [0x482740]
push 0x482dbc
jmp 0x423ed7
push 0x482dd4
lea ecx, [ebp - 0x28]
call fcn.0041f283
push 1
push esi
push esi
lea ecx, [ebp - 0x28]
call fcn.0041fee9
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041fee9
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041fdb9
lea ecx, [ebp - 0x40]
call fcn.0041f063
lea ecx, [ebp - 0x4c]
call fcn.0041f063
lea ecx, [ebp - 0x28]
call fcn.0041f063
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40294c
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 0x402989
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 0x4029a9
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004056a8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c74
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.00405438
test esi, esi
jne 0x402caa
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.00405528
jmp 0x402cc8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402b28
mov edi, eax
test esi, esi
je 0x402cc8
cmp dword [ebx], 0
je 0x402cc8
dec esi
jmp 0x402cb1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4ae008], 0x8088405
inc edx
mov dword [ebx + 0x4ae008], edx
fld qword [ebx + 0x4ae06c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403b04
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403b22
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
je 0x403b2c
jmp fcn.004028cc
mov eax, 0x67
jmp fcn.004028bc
ret

Function at 0x4044fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ae024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404594
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404574
xor eax, eax
push ebp
push 0x40456d
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 0x4045b0
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 0x404574
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ae024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ae024], ax
mov esp, ebp
pop ebp
ret
Function at 0x405240
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b1044], 0
je 0x4052a1
cmp word [0x4b1218], 0xd7b2
jne 0x405269
cmp dword [0x4b1220], 0
jbe 0x405269
mov eax, 0x4b1214
call dword [0x4b1230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ae0c8
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 0x4052c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ae034], 0
jne 0x4052bd
push 0
push 0x4ae0c0
push 0x4ae0c8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4053f4
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.00402734
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b1045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4053bc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40673c
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
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40696c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4067bf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40696c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4067bf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406988
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406848
xor eax, eax
push ebp
push 0x406841
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406584
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 0x406826
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4069a8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406826
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 0x406848
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 0x406962
cmp byte [ebp - 0xd], 0
jne 0x40688f
cmp byte [ebp - 0x12], 0
je 0x406962
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4068a8
dec ebx
cmp byte [ebx], 0x2e
je 0x4068b7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4068a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406962
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4068f4
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 0x406962
cmp byte [ebp - 0xd], 0
je 0x406962
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 0x406962
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 0x407034
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 0x40709a
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.004056a8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403b30
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407084
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4070a1
lea eax, [ebp - 0x10]
call fcn.00405438
ret

Function at 0x40a9c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x40a9f1
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40a9f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x40aa29
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40abbc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058f8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40abe0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004058f8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40ac0f
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x40dd60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40dda8
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00405528
jmp 0x40ddb3
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040548c
mov esp, ebp
pop ebp
ret 4