joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a36a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ecx + 0x20]
push edi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x45a391
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
jmp 0x45a394
mov edi, dword [esi + 4]
test edi, edi
je 0x45a44c
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [edi + 8], 1
jle 0x45a40f
mov dword [ebp - 0xc], 8
mov ebx, 4
cmp dword [ebp + 8], 0
je 0x45a3e3
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 0x14]
mov eax, dword [ebp + 8]
cmp dword [edx + ecx + 4], eax
je 0x45a3e3
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx], 0
je 0x45a3fd
mov dword [ebp - 4], 0
jmp 0x45a3fd
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x45a3f3
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [edi + 0xc]
mov dword [eax + ebx], 0
add ebx, 4
inc dword [ebp - 8]
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 8]
cmp dword [edi + 8], eax
jg 0x45a3bc
cmp dword [ebp - 4], 0
je 0x45a44c
push edi
lea ecx, [esi + 0x18]
call fcn.00459f2a
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x45a433
push 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x45a445
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x45a44c
mov dword [esi + 4], 0
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45a45f
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
cmp dword [ecx], 0
mov esi, ecx
jne 0x45a49f
cmp dword [0x485260], 0
jne 0x45a492
mov ecx, 0x485268
test ecx, ecx
je 0x45a488
push 1
call fcn.00459fa7
mov dword [0x485260], eax
jmp 0x45a492
mov dword [0x485260], 0
mov ecx, dword [0x485260]
call fcn.00459ff9
mov dword [esi], eax
mov edi, dword [esi]
mov eax, dword [0x485260]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45a4bf
cmp dword [eax + 8], edi
jle 0x45a4bf
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x45a4c1
xor edi, edi
test edi, edi
jne 0x45a4d9
call dword [esp + 0xc]
push eax
mov edi, eax
push dword [esi]
mov ecx, dword [0x485260]
call fcn.0045a1a2
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x45b2e3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x45b317
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
cmp eax, 1
sbb eax, eax
neg eax
jmp 0x45b363
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x45b361
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x45b361
mov eax, 1
test esi, esi
je 0x45b363
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4660bd
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x4661f2
call fcn.0042f00c
sub esp, 0x114
lea ecx, [ebp - 0x10]
push ebx
push esi
push edi
xor esi, esi
call fcn.00446623
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00446623
mov byte [ebp - 4], 1
mov eax, 0x80000000
mov dword [ebp - 0x18], esi
cmp dword [ebp + 0x18], eax
jne 0x466106
lea ecx, [ebp - 0x18]
push ecx
push str.CLSID
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x1c], 1
mov esi, 0x80000000
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
test ebx, ebx
je 0x4661b0
add dword [ebp + 8], 4
cmp dword [ebp + 0x18], esi
jne 0x46612d
cmp byte [ebx], 0
je 0x466112
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
lea edi, [ebx + eax + 1]
lea eax, [ebp - 0x10]
push eax
call fcn.0044de6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.0044de6d
cmp dword [ebp + 0x18], esi
jne 0x466166
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x466112
cmp dword [ebp + 0x14], 0
jne 0x46618e
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x20], 0x100
push eax
push ecx
push dword [ebp - 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x466112
push 0
push dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x466112
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
je 0x4661bf
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
call fcn.004661ea
mov dword [ebp - 4], 0xffffffff
call fcn.004661fc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
mov ecx, 0x3b4d2b60
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xa7147f2
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401460
Capabilities:
Create directory
Read file on windows
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x634
call sym.___main
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
test eax, eax
jne 0x4014b4
mov dword [esp], str.Error_dapat_filename
call sym._perror
mov eax, 1
jmp 0x401603
mov dword [ebp - 0x124], 0x4b5c3a43
mov dword [ebp - 0x120], 0x6d616361
mov dword [ebp - 0x11c], 0x617461
mov dword [esp + 4], 0
lea eax, [ebp - 0x124]
mov dword [esp], eax
call sym._CreateDirectoryA_8
sub esp, 8
test eax, eax
jne 0x401507
call sym._GetLastError_0
cmp eax, 0xb7
je 0x401507
mov dword [esp], str.Error_create_folder
call sym._perror
lea eax, [ebp - 0x124]
mov dword [esp + 8], eax
mov dword [esp + 4], str._skacamata09.exe
lea eax, [ebp - 0x628]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 4], 0x40509f
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401552
mov dword [esp], str.Error_open_sourcePath
call sym._perror
mov dword [esp + 4], 0x4050b8
lea eax, [ebp - 0x628]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4015ae
mov dword [esp], str.Error_write_destPath
call sym._perror
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
jmp 0x4015ae
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x524]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
lea eax, [ebp - 0x524]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40158a
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov dword [esp], 0x14
call sym._sleep
jmp 0x4014b4
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401c50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401c9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c94
test esi, esi
je 0x401c94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c70
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401fa8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401f0e
cmp eax, 4
jne 0x401f30
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401f1e
cmp edx, 4
je 0x401f1e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e80
Function at 0x402b38
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.00404724
test esi, esi
jne 0x402b6e
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.00404814
jmp 0x402b8c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a4c
mov edi, eax
test esi, esi
je 0x402b8c
cmp dword [ebx], 0
je 0x402b8c
dec esi
jmp 0x402b75
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403764
Capabilities:
Query or enumerate registry value

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

Function at 0x4045a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49a04c], 0
je 0x404609
cmp word [0x49a220], 0xd7b2
jne 0x4045d1
cmp dword [0x49a228], 0
jbe 0x4045d1
mov eax, 0x49a21c
call dword [0x49a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x498070
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 0x404630
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x498030], 0
jne 0x404625
push 0
push 0x498068
push 0x498070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060fc
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 0x40632c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40617f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40632c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40617f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406348
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406208
xor eax, eax
push ebp
push 0x406201
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f44
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 0x4061e6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406368
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4061e6
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 0x406208
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 0x406322
cmp byte [ebp - 0xd], 0
jne 0x40624f
cmp byte [ebp - 0x12], 0
je 0x406322
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406268
dec ebx
cmp byte [ebx], 0x2e
je 0x406277
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406267
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406322
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4062b4
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 0x406322
cmp byte [ebp - 0xd], 0
je 0x406322
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 0x406322
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 0x406208
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 0x40632c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40617f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40632c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40617f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406348
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406208
xor eax, eax
push ebp
push 0x406201
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f44
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 0x4061e6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406368
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4061e6
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 0x406208
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 0x406322
cmp byte [ebp - 0xd], 0
jne 0x40624f
cmp byte [ebp - 0x12], 0
je 0x406322
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406268
dec ebx
cmp byte [ebx], 0x2e
je 0x406277
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406267
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406322
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4062b4
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 0x406322
cmp byte [ebp - 0xd], 0
je 0x406322
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 0x406322
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 0x406a10
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 0x406a76
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.00404994
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031cc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a60
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a7d
lea eax, [ebp - 0x10]
call fcn.00404724
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404be4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40964d
test al, 0x10
jne 0x409651
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c6f0
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 0x40c729
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404814
jmp 0x40c732
mov eax, ebx
mov edx, esi
call fcn.00404778
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cde4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc5c
mov eax, dword [0x499b5c]
cmp byte [eax], 0
je 0x40ce60
mov eax, dword [0x499868]
call fcn.00402f84
call fcn.00402978
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.00409824
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 0x40cea8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce96
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4997ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49a668]
call fcn.00405f08
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