joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a0b0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 4]
jne 0x40a19b
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_PtInRect]
movsx edi, ax
shr eax, 0x10
movsx ebx, ax
cmp dword [esi + 0xc8], 1
jne 0x40a115
push ebx
lea eax, [esi + 0x180]
push edi
push eax
call ebp
test eax, eax
je 0x40a115
mov ecx, dword [esi + 4]
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebp
mov dword [esi + 0xc8], 0
pop ebx
xor eax, eax
pop esi
ret 0x10
cmp dword [esi + 0xc8], 2
jne 0x40a150
push ebx
lea edx, [esi + 0x198]
push edi
push edx
call ebp
test eax, eax
je 0x40a150
mov eax, dword [esi + 4]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebp
mov dword [esi + 0xc8], 0
pop ebx
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x40a188
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esi + 0x180]
push 0
push ecx
push edx
mov dword [esi + 0xc8], 0
call edi
mov ecx, dword [esi + 4]
lea eax, [esi + 0x198]
push 0
push eax
push ecx
call edi
pop edi
pop ebp
mov dword [esi + 0xc8], 0
pop ebx
xor eax, eax
pop esi
ret 0x10
xor eax, eax
pop esi
ret 0x10

Function at 0x40b120
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x76]
test al, al
je 0x40b18a
mov al, byte [esp + 8]
test al, al
je 0x40b18a
mov eax, dword [esi + 0x7c]
push edi
xor edi, edi
test eax, eax
jle 0x40b157
lea eax, [esp + 0xc]
mov dword [esp + 0xc], edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x7c]
add esp, 4
sub edi, eax
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x1c8]
xor edx, edx
test ecx, ecx
setne dl
add edx, 0x14
push edi
push edx
mov ecx, esi
call fcn.0040c680
mov eax, dword [esi + 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov ecx, esi
call fcn.00409dc0
push 0
mov ecx, esi
call fcn.0040aa30
pop esi
ret 4

Function at 0x40b270
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov byte [esi + 0x76], 1
call fcn.0040b1a0
mov bl, al
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test bl, bl
jne 0x40b2bf
mov ecx, dword [esi + 0x1c4]
test ecx, ecx
je 0x40b29a
cmp ecx, eax
jne 0x40b2bf
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0
push 0xc8
push 2
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
pop ebx
add esp, 0x14
ret
mov edx, dword [esi + 4]
push 8
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
test bl, bl
jne 0x40b301
mov eax, dword [esi + 4]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_FlashWindowEx]
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40ca80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x98]
test eax, eax
jne 0x40ca95
call fcn.0040beb0
push edi
lea eax, [esi + 0x90]
push str.inmedia.cfg
lea ecx, [esp + 0xc]
push eax
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
lea edx, [esi + 0x204]
mov ecx, 0x3f
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
pop edi
jne 0x40cad1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push 0x64
push edx
push str.inmedia4u.sandai.net
push str.udpserver
push str.EMBED
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 8]
test eax, eax
jne 0x40caf7
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push 0xc1c
push str.udpport
push str.EMBED
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 8]
mov dword [esi + 0x200], eax
test ecx, ecx
pop esi
je 0x40cb3a
mov al, byte [ecx - 1]
test al, al
je 0x40cb30
cmp al, 0xff
je 0x40cb30
dec al
mov byte [ecx - 1], al
add esp, 0x10
ret
dec ecx
push ecx
call fcn.004218a8
add esp, 4
add esp, 0x10
ret
Function at 0x4101e0
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
push ebp
push esi
push edi
call ebx
mov esi, dword [esp + 0x18]
cmp eax, esi
je 0x4102a1
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
call ebp
push 0
mov edi, eax
call ebx
push eax
call ebp
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x4102b6
push 1
push 0
call ebx
push eax
call ebp
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
push edi
call ebp
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
mov eax, dword [esp + 0x1c]
push eax
push edi
call ebp
call ebx
cmp eax, esi
je 0x4102b6
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0x2000
call edi
push 2
push 0
push 0
push 0x2000
call edi
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea edx, [esp + 0x10]
push 2
push edx
push 0
push 0x200
call edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x4102c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4102f2
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4102e0
push 9
jmp 0x4102f4
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call fcn.004101e0
pop edi
pop esi
ret 4
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
call edi
push 0x43
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
ret 4

Function at 0x4136f0
Capabilities:
Hash data with md5

Disassembly:
mov edx, ecx
push edi
xor eax, eax
mov ecx, 0x10
lea edi, [edx + 0x18]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
rep stosd dword es:[edi], eax
pop edi
ret
Function at 0x416d70
Capabilities:
Hash data using sha1

Disassembly:
mov edx, ecx
push edi
xor eax, eax
mov ecx, 0x10
lea edi, [edx + 0x1c]
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov dword [edx + 0x10], 0xc3d2e1f0
rep stosd dword es:[edi], eax
pop edi
ret

Function at 0x418f00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x423122
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x20], esi
mov byte [esi + 4], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
push 0x30
mov dword [esp + 0x30], ebx
mov byte [esi + 0x14], cl
mov byte [esi + 0x15], dl
mov byte [esi + 0x1c], bl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
lea ecx, [esp + 0x18]
mov ebp, edi
mov dword [edi + 4], ebx
mov dword [edi + 0x2c], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
cmp dword [0x42c50c], ebx
jne 0x418f85
mov dword [0x42c50c], edi
mov dword [edi], ebx
mov eax, dword [0x42c50c]
xor ebp, ebp
mov dword [eax + 8], ebx
mov ecx, dword [0x42c508]
inc ecx
mov dword [0x42c508], ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp ebp, ebx
je 0x418fa9
push ebp
call fcn.004218a8
add esp, 4
mov edi, dword [0x42c50c]
push 0x30
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax + 4], edi
mov dword [eax + 0x2c], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
mov cl, byte [esp + 0x17]
mov dl, byte [esp + 0x17]
lea edi, [esi + 0x24]
push 0x14
mov byte [esp + 0x34], 1
mov byte [edi], cl
mov byte [edi + 1], dl
mov byte [edi + 8], bl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], ebx
mov dword [ebp + 0x10], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
cmp dword [0x42c504], ebx
jne 0x419023
mov dword [0x42c504], ebp
mov dword [ebp], ebx
mov eax, dword [0x42c504]
mov dword [esp + 0x14], ebx
mov dword [eax + 8], ebx
mov edx, dword [0x42c500]
lea ecx, [esp + 0x1c]
inc edx
mov dword [0x42c500], edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41904b
push eax
call fcn.004218a8
add esp, 4
mov ecx, dword [0x42c504]
push ebx
push ecx
mov ecx, edi
call fcn.0041c340
mov dword [edi + 4], eax
mov dword [edi + 0xc], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov ecx, esi
mov byte [esp + 0x2c], 2
mov dword [esi], 0x424bf0
call fcn.004192a0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x41ca00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x41ca10
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret 4
Function at 0x41d080
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
xor edx, edx
push edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x10], edx
mov byte [esp + 0x14], 0x30
mov byte [esp + 0x15], 0x31
mov byte [esp + 0x16], 0x32
mov byte [esp + 0x17], 0x33
mov byte [esp + 0x18], 0x34
mov byte [esp + 0x19], 0x35
mov byte [esp + 0x1a], 0x36
mov byte [esp + 0x1b], 0x37
mov byte [esp + 0x1c], 0x38
mov byte [esp + 0x1d], 0x39
mov byte [esp + 0x1e], 0x41
mov byte [esp + 0x1f], 0x42
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], 0x44
mov byte [esp + 0x22], 0x45
mov byte [esp + 0x23], 0x46
xor eax, eax
lea ecx, [esp + 0x25]
xor ebx, ebx
mov bl, byte [eax + edi]
mov esi, ebx
shr ebx, 4
and esi, 0x8000000f
mov bl, byte [esp + ebx + 0x14]
mov byte [ecx - 1], bl
jns 0x41d105
dec esi
or esi, 0xfffffff0
inc esi
mov bl, byte [esp + esi + 0x14]
inc eax
mov byte [ecx], bl
add ecx, 2
cmp eax, 0x14
jb 0x41d0e7
mov ebp, dword [esp + 0x68]
mov byte [esp + eax*2 + 0x24], 0
mov al, byte [esp + 0x6c]
lea edi, [esp + 0x24]
mov byte [ebp], al
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 4], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 8], edx
mov ebx, ecx
mov dword [ebp + 0xc], edx
cmp ebx, 0xfffffffd
jbe 0x41d14a
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
xor edx, edx
mov ecx, dword [ebp + 4]
cmp ecx, edx
je 0x41d17a
mov al, byte [ecx - 1]
test al, al
je 0x41d17a
cmp al, 0xff
je 0x41d17a
cmp ebx, edx
jne 0x41d1aa
dec al
push edx
mov byte [ecx - 1], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
cmp ebx, edx
jne 0x41d194
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x41d1a0
cmp eax, ebx
jae 0x41d1b3
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [eax + ebx], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x54
ret 8
Function at 0x402abc
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.004045f8
test esi, esi
jne 0x402af2
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.004046e8
jmp 0x402b10
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402970
mov edi, eax
test esi, esi
je 0x402b10
cmp dword [ebx], 0
je 0x402b10
dec esi
jmp 0x402af9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40369c
Capabilities:
Query or enumerate registry value

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

Function at 0x4043f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x471048], 0
je 0x404459
cmp word [0x47121c], 0xd7b2
jne 0x404421
cmp dword [0x471224], 0
jbe 0x404421
mov eax, 0x471218
call dword [0x471234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46f070
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 0x404480
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46f030], 0
jne 0x404475
push 0
push 0x46f068
push 0x46f070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4045ac
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 [0x471049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404574
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4058e8
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 0x405b18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40596b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b18
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40596b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4059f4
xor eax, eax
push ebp
push 0x4059ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405730
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 0x4059d2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405b54
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4059d2
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 0x4059f4
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 0x405b0e
cmp byte [ebp - 0xd], 0
jne 0x405a3b
cmp byte [ebp - 0x12], 0
je 0x405b0e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405a54
dec ebx
cmp byte [ebx], 0x2e
je 0x405a63
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405a53
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405b0e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405aa0
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 0x405b0e
cmp byte [ebp - 0xd], 0
je 0x405b0e
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 0x405b0e
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 0x4061e0
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 0x406246
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.00404868
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403104
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406230
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40624d
lea eax, [ebp - 0x10]
call fcn.004045f8
ret

Function at 0x40b854
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 0x40b88d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004046e8
jmp 0x40b896
mov eax, ebx
mov edx, esi
call fcn.0040464c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bf48
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bdc0
mov eax, dword [0x4703c0]
cmp byte [eax], 0
je 0x40bfc4
mov eax, dword [0x47019c]
call fcn.00402f28
call fcn.0040289c
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.00408d14
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 0x40c00c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bffa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x470140]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x471664]
call fcn.004056f4
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