joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae53
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x9c
push eax
call esi
test eax, eax
jne 0x40ae9f
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x40aec4
cmp dword [ebp - 0x8c], 2
jne 0x40aec1
cmp dword [ebp - 0x98], 6
jae 0x40aec1
cmp dword [ebp - 0x98], 4
jb 0x40aec1
call fcn.0040ad2d
jmp 0x40aec4
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x40b0cd
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x27
xor eax, eax
pop ecx
lea edi, [ebp - 0xb4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
xor ebx, ebx
push str.win32
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xb4], 0x9c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xb4]
push eax
call edi
test eax, eax
jne 0x40b12c
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0x94
push eax
call edi
cmp dword [ebp - 0xa4], 2
jne 0x40b1a9
cmp dword [ebp - 0xb0], 4
jne 0x40b148
push str.winnt
jmp 0x40b1e0
cmp dword [ebp - 0xb0], 6
jne 0x40b171
cmp dword [ebp - 0xac], ebx
jne 0x40b1e6
cmp byte [ebp - 0x1a], 1
jne 0x40b16a
push str.winvista
jmp 0x40b1e0
push str.winlong
jmp 0x40b1e0
cmp dword [ebp - 0xb0], 5
jne 0x40b1e6
cmp dword [ebp - 0xac], ebx
jne 0x40b189
push str.win2000
jmp 0x40b1e0
cmp dword [ebp - 0xac], 1
jne 0x40b199
push str.winxp
jmp 0x40b1e0
cmp dword [ebp - 0xac], 2
jne 0x40b1e6
push str.win2003
jmp 0x40b1e0
cmp dword [ebp - 0xa4], 1
jne 0x40b1e6
cmp dword [ebp - 0xb0], 4
jne 0x40b1db
cmp dword [ebp - 0xac], 0xa
jne 0x40b1cb
push str.win98
jmp 0x40b1e0
cmp dword [ebp - 0xac], 0x5a
jne 0x40b1db
push str.winme
jmp 0x40b1e0
push str.win95
lea eax, [ebp - 0x18]
push eax
call esi
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x18]
push eax
push 0x413208
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0xa0]
add esp, 0xc
test eax, eax
je 0x40b24c
lea edi, [ebp - 0xa0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40b24c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa0]
push 0x41320c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x40b24c
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push str._s_sp_d
push dword [ebp + 8]
call ebx
add esp, 0x10
mov ebx, dword [ebp + 0x10]
and word [ebp - 0xd8], 0
push str.Unknown
push ebx
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b28b
push str.GetNativeSystemInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b28b
lea ecx, [ebp - 0xd8]
push ecx
call eax
jmp 0x40b298
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test edi, edi
je 0x40b2a3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0xd8]
test eax, eax
je 0x40b2c6
cmp eax, 6
je 0x40b2bf
cmp eax, 9
jne 0x40b2ce
push str.amd64
jmp 0x40b2cb
push str.ia64
jmp 0x40b2cb
push 0x413260
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bf74
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
pop ecx
mov edx, eax
pop ecx
mov edi, 0x414b38
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [ebp - 0x20c]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
cmp edx, edi
je 0x40bfe8
push edx
call dword [sym.imp.MSVCRT.dll_asctime]
cmp eax, edi
pop ecx
je 0x40bfe8
push eax
lea eax, [ebp - 0x20c]
push str._n_s::
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ebx, 0x104
lea eax, [ebp - 0x10c]
push ebx
push eax
push str.TMPDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
jne 0x40c01a
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40c028
lea eax, [ebp - 0x10c]
push 0x4136a8
push eax
call esi
lea eax, [ebp - 0x10c]
push str.jusched.log
push eax
call esi
push edi
push 0x80
push 4
push edi
push 2
lea eax, [ebp - 0x10c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c0ac
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push edi
push eax
lea edi, [ebp - 0x20c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x20c]
not ecx
dec ecx
push ecx
push eax
push ebx
call esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp + 8]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c0b1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f9d8
push 0x40e726
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], 0x94
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa0], 2
jne 0x40c150
cmp dword [ebp - 0xac], 5
jb 0x40c150
mov dword [ebp - 4], esi
push 0x4136b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xb4], eax
cmp eax, esi
je 0x40c147
push 0x4136c4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c147
mov dword [ebp - 0x1c], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040c162
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c323
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 1
push esi
push 0x413734
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c384
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push str.ITCONFIG
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x40c384
movzx esi, byte [ebp - 0x208]
mov eax, esi
pop esi
leave
ret

Function at 0x40c43c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x4137a8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c473
push 0x4137d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40c475
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push SysReAllocString
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], 0x64
mov dword [ebp - 0xc], 0x200
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c508
call fcn.0040c0b1
test eax, eax
je 0x40c4db
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.0040c23c
add esp, 0x10
jmp 0x40c4e4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x210], eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x210]
push eax
push 3
push esi
push str.EnableAutoUpdateCheck
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x40d0fa
Capabilities:
Delete registry value
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
lea eax, [ebp - 8]
push edi
push eax
call fcn.0040935b
test eax, eax
pop ecx
je 0x40d2df
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
push 4
pop ebx
lea eax, [ebp - 0x10]
push 0x414630
push eax
mov dword [ebp - 4], ebx
call edi
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x414634
mov dword [ebp - 4], 3
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
and byte [ebp - 0x218], 0
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x41463c
mov dword [ebp - 4], 0x100
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x98]
push 0x41464c
push eax
call edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x414650
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x118]
push 0x414664
push eax
call edi
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x414668
mov dword [ebp - 4], 0x80
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x414678
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40d23b
push edi
lea eax, [ebp - 0x98]
push edi
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x414688
lea eax, [ebp - 0x218]
push 0x41468c
push eax
call fcn.0040b3d1
add esp, 0x20
test eax, eax
je 0x40d23b
push 0x414690
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4146a0
mov dword [ebp - 0x14], edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40d2d2
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4146b0
mov dword [ebp - 0x18], edi
push dword [ebp - 8]
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x98]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4146c4
lea eax, [ebp - 0x218]
push 0x4146c8
push eax
call fcn.0040b3d1
add esp, 0x20
test eax, eax
je 0x40d2d2
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x4146cc
push dword [ebp - 8]
call esi
push 0x4146e0
push dword [ebp - 8]
call esi
push 0x4146f4
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
jmp 0x40d2e1
xor edi, edi
mov dword [0x414b80], edi
xor eax, eax
pop edi
leave
ret 4
Function at 0x40d2ee
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
call fcn.0040ac47
test eax, eax
je 0x40d3ad
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
call fcn.0040935b
test eax, eax
pop ecx
jne 0x40d323
push 1
jmp 0x40d380
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 8]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x414704
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x40d368
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x414714
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop edi
je 0x40d31f
cmp dword [0x414b80], ebx
push 1
je 0x40d383
pop eax
jmp 0x40d3ad
cmp dword [ebp + 8], ebx
pop esi
jne 0x40d39f
push 0x414b80
push ebx
push ebx
push fcn.0040d0fa
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x40d3ab
push ebx
mov dword [0x414b80], esi
call fcn.0040d0fa
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40d7b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
push 0x414850
push eax
mov dword [ebp - 4], 3
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str.Country
call fcn.00408f1f
add esp, 0xc
lea eax, [ebp - 0x208]
mov dword [ebp - 4], 0x100
push 0x414b9c
push eax
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x208]
push eax
push str.PostStatusUrl
call fcn.00408f1f
add esp, 0xc
lea eax, [ebp - 0x88]
push 0x41486c
push eax
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
push str.InstalledJREVersion
call fcn.00408f1f
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x414884
push eax
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push str.NewJREVersion
call fcn.00408f1f
push dword [ebp + 8]
lea eax, [ebp - 0x88]
push 0
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 8]
push eax
push 0x414898
lea eax, [ebp - 0x208]
push 0x41489c
push eax
call fcn.0040b3d1
add esp, 0x2c
pop esi
leave
ret

Function at 0x40e2a1
Capabilities:
Create process on windows

Disassembly:
cmp word [esp + 8], 0xcc
jne 0x40e2c3
xor eax, eax
push 1
push eax
add ecx, 0x41c
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret 0x10
Function at 0x40509c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
mov eax, dword [0x49277c]
mov eax, dword [eax]
call fcn.00453b98
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, dword [ebp + 8]
jb 0x4050a7
pop ebx
pop ebp
ret 4

Function at 0x413b64
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x492a94
cmp dword [edi], 0
jne 0x413be0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x492a90]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48d754
mov ecx, 2
call fcn.004275d0
mov edx, 0x413b3c
lea eax, [esi + 5]
call fcn.00413b5c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00413b5c
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 0x413bb5
mov dword [0x492a90], 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

Function at 0x4151a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00414d14
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004291f4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x415206
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x492590]
mov dl, 1
mov eax, dword [0x414c0c]
call fcn.0041add8
call fcn.004289a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x415210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004291f4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x415268
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49258c]
mov dl, 1
mov eax, dword [0x414c0c]
call fcn.0041add8
call fcn.004289a4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00414d44
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41a534
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 sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x41a56d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00428e34
jmp 0x41a576
mov eax, ebx
mov edx, esi
call fcn.00428d98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x41ac28
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x41aaa0
mov eax, dword [0x49276c]
cmp byte [eax], 0
je 0x41ac95
mov eax, dword [0x492770]
call fcn.0042798c
call fcn.0042753c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00417e60
push eax
lea eax, [esp + 0x50]
push eax
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 0x41acdc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41accb
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49262c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x492968]
call fcn.0042a4f4
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

Function at 0x41ba48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x41baac
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00428fac
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00417b38
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bab3
lea eax, [ebp - 0xc]
call fcn.00428d44
ret
Function at 0x428068
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48dcc8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x428100
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4280e0
xor eax, eax
push ebp
push 0x4280d9
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 0x42811c
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 0x4280e0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x48dcc8]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48dcc8], ax
mov esp, ebp
pop ebp
ret

Function at 0x428bc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x492dd0], 0
je 0x428c29
cmp word [0x492fa4], 0xd7b2
jne 0x428bf1
cmp dword [0x492fac], 0
jbe 0x428bf1
mov eax, 0x492fa0
call dword [0x492fbc]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x428c50
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x48dcd8], 0
jne 0x428c45
push 0
push 0x48dd30
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x42a6e8
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 0x42a918
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42a76b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42a918
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42a76b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42a934
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42a7f4
xor eax, eax
push ebp
push 0x42a7ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0042a530
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 0x42a7d2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x42a954
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42a7d2
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 0x42a7f4
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 0x42a90e
cmp byte [ebp - 0xd], 0
jne 0x42a83b
cmp byte [ebp - 0x12], 0
je 0x42a90e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x42a854
dec ebx
cmp byte [ebx], 0x2e
je 0x42a863
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x42a853
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x42a90e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x42a8a0
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 0x42a90e
cmp byte [ebp - 0xd], 0
je 0x42a90e
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 0x42a90e
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