joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4493ec
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x449597
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x449578
mov dl, 1
mov eax, dword [0x411c04]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x449567
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043732c
test al, al
je 0x44955a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4495a8
lea eax, [ebp - 0x254]
call fcn.00408c28
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44955a
xor eax, eax
push ebp
push 0x449553
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4495e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44953c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404450
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44953c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44955a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44945d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415768
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44959e
lea eax, [ebp - 0x260]
call fcn.004041e0
ret

Function at 0x449ee0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x44fb40]
cmp byte [eax + 0xa5], 0
jne 0x449f51
cmp dword [0x44fb58], 0
jne 0x449f12
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x449e9c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x44fb58], eax
cmp dword [0x44fb54], 0
jne 0x449f2d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x44fb54], eax
cmp dword [0x44fb5c], 0
jne 0x449f51
push esp
push 0
push 0
push 0x449e40
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x44fb5c], eax
pop edx
ret
Function at 0x44a5e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44fb40]
cmp dword [eax + 0x30], 0
je 0x44a68e
cmp dword [ebx + 0x94], 0
jne 0x44a688
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a574
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a688
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a64e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a688
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413b64
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a65d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b1ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44b221
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042d0
jmp 0x44b22e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404234
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c1bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c1fd
mov eax, esi
call fcn.00432ae4
test al, al
je 0x44c1fd
mov eax, dword [ebx + 0x84]
call fcn.00432884
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c1fd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00432884
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4093d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40942a
inc esi
xor edi, edi
cmp edi, 1
jne 0x4093f6
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x409404
cmp edi, 1
jle 0x409404
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408eb4
test eax, eax
jne 0x40942a
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x40942a
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x40942a
inc edi
dec esi
jne 0x4093e6
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4096bc
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
cmp dword [0x40cca4], 0
je 0x409705
mov edi, dword [0x40cde8]
dec edi
test edi, edi
jl 0x409705
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cde4]
mov edx, dword [edx + eax]
mov eax, dword [0x40cca4]
call fcn.00404b64
test eax, eax
jne 0x409701
mov eax, esi
call fcn.00409670
jmp 0x4097ca
inc esi
dec edi
jne 0x4096d7
mov al, byte [0x40cdc8]
sub al, 1
jb 0x409712
je 0x40971b
jmp 0x409724
call fcn.00406f58
mov ebp, eax
jmp 0x409726
call sub.kernel32.dll_GetUserDefaultLangID
mov ebp, eax
jmp 0x409726
xor ebp, ebp
test bp, bp
je 0x4097c3
mov edi, dword [0x40cde8]
dec edi
test edi, edi
jl 0x409772
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cde4]
lea ebx, [edx + eax]
movzx eax, bp
cmp eax, dword [ebx + 0x28]
jne 0x40976e
cmp dword [ebx + 0x2c], 0
je 0x409765
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x40976e
mov eax, esi
call fcn.00409670
jmp 0x4097ca
inc esi
dec edi
jne 0x40973d
mov edi, dword [0x40cde8]
dec edi
test edi, edi
jl 0x4097c3
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cde4]
lea ebx, [edx + eax]
mov eax, dword [ebx + 0x28]
and eax, 0x3ff
mov edx, ebp
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x4097bf
cmp dword [ebx + 0x2c], 0
je 0x4097b6
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x4097bf
mov eax, esi
call fcn.00409670
jmp 0x4097ca
inc esi
dec edi
jne 0x409780
xor eax, eax
call fcn.00409670
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40aeb7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43ad20]
jne 0x40aec1
repz ret
jmp fcn.0040e51c

Function at 0x40cbd2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43ad20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040698f
and dword [ebp - 0x14], 0
cmp dword [0x43c348], 0
mov dword [ebp - 0x18], eax
jne 0x40cc85
push 0x404500
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40cd2d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4044f4
push ebx
call edi
test eax, eax
je 0x40cd2d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4044e4
push ebx
mov dword [0x43c348], eax
call edi
push eax
call esi
push 0x4044d0
push ebx
mov dword [0x43c34c], eax
call edi
push eax
call esi
push 0x4044b4
push ebx
mov dword [0x43c350], eax
call edi
push eax
call esi
mov dword [0x43c358], eax
test eax, eax
je 0x40cc85
push 0x40449c
push ebx
call edi
push eax
call esi
mov dword [0x43c354], eax
mov eax, dword [0x43c354]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40ccde
cmp dword [0x43c358], ecx
je 0x40ccde
push eax
call esi
push dword [0x43c358]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40ccde
test ebx, ebx
je 0x40ccde
call edi
test eax, eax
je 0x40ccd5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40ccd5
test byte [ebp - 8], 1
jne 0x40ccde
or dword [ebp + 0x10], 0x200000
jmp 0x40cd11
mov eax, dword [0x43c34c]
cmp eax, dword [ebp - 0x18]
je 0x40cd11
push eax
call esi
test eax, eax
je 0x40cd11
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cd11
mov eax, dword [0x43c350]
cmp eax, dword [ebp - 0x18]
je 0x40cd11
push eax
call esi
test eax, eax
je 0x40cd11
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43c348]
call esi
test eax, eax
je 0x40cd2d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40cd2f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aeb7
leave
ret
Function at 0x423840
Capabilities:
Delete directory
Get common file path
Read file on windows
Set console window title

Disassembly:
mov eax, 0x1464
call fcn.0040e6e0
cmp dword [0x7c13b8], 0x37
jne 0x423932
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046a4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push 0
lea edx, [esp + 0x868]
push edx
push 0x4046c0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0xc68]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0x4046ec
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
lea eax, [esp + 8]
push eax
push 0x404720
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x404758
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0
lea ecx, [esp + 0x68]
push ecx
push 0
push 0x40478c
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
lea edx, [esp + 0x464]
push edx
push 0
push 0x4047c4
push 0x4047d8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
push 0
push 0x4047dc
push 0x40480c
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0x7c13bc]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x44141c]
mov byte [eax + esi], dl
add esp, 0x1464
ret
Function at 0x423af0
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7c13b8]
sub esp, 0x1d4
push ebx
push ebp
push esi
mov esi, dword [0x44141c]
shr eax, 3
push edi
test eax, eax
je 0x423ca5
mov dword [esp + 0x38], 0x9e3779b9
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
jmp 0x423b26
mov esi, dword [esp + 0x1c]
cmp dword [0x7c13b8], 0x1c
jne 0x423b43
lea eax, [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov edx, dword [0x43b310]
mov ecx, dword [0x43b314]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [0x43b318]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x43b31c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], 0x20
jmp 0x423b87
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x34]
shl ecx, 4
add ecx, dword [esp + 0x28]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0x7c033c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0x7c13b8], 0x1be
lea ebp, [ebx + edi]
jne 0x423bdc
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0x7c13b8], 0x979
mov dword [0x7c0340], 0xff6b3619
mov dword [0x7c0344], 0xffffffff
jne 0x423c15
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
sub ebx, dword [esp + 0x18]
dec dword [esp + 0x20]
jne 0x423b83
cmp dword [0x7c13b8], 0x8d4
jne 0x423c58
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0x7c13b8], 0x17
jne 0x423c94
push 0
push 0
push 0
push 0x404558
push 0x4045b8
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jne 0x423b22
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d4
ret
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.00403fc8
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.004040b8
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 0x4030d0
Capabilities:
Query or enumerate registry value

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

Function at 0x403e2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4aa048], 0
je 0x403e8d
cmp word [0x4aa21c], 0xd7b2
jne 0x403e55
cmp dword [0x4aa224], 0
jbe 0x403e55
mov eax, 0x4aa218
call dword [0x4aa234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a706c
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 0x403eb4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a7030], 0
jne 0x403ea9
push 0
push 0x4a7064
push 0x4a706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4053bc
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 0x4055ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40543f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4055ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40543f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405608
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4054c8
xor eax, eax
push ebp
push 0x4054c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405204
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 0x4054a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405628
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4054a6
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 0x4054c8
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 0x4055e2
cmp byte [ebp - 0xd], 0
jne 0x40550f
cmp byte [ebp - 0x12], 0
je 0x4055e2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405528
dec ebx
cmp byte [ebx], 0x2e
je 0x405537
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405527
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4055e2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405574
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 0x4055e2
cmp byte [ebp - 0xd], 0
je 0x4055e2
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 0x4055e2
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 0x405cb4
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 0x405d1a
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.00404238
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c94
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d21
lea eax, [ebp - 0x10]
call fcn.00403fc8
ret

Function at 0x40afdc
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 0x40b015
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040b8
jmp 0x40b01e
mov eax, ebx
mov edx, esi
call fcn.0040401c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b6d0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b548
mov eax, dword [0x4a8efc]
cmp byte [eax], 0
je 0x40b74c
mov eax, dword [0x4a8d00]
call fcn.00402b00
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.0040883c
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 0x40b794
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b782
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a8ca8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4aa664]
call fcn.004051c8
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