Function at 0x4019c0
Capabilities:
Get geographical location
Identify system language via api
Persist via run registry key
Query or enumerate registry value
Swap mouse buttons

Disassembly:
sub esp, 0x670
mov eax, dword [0x417008]
xor eax, esp
mov dword [esp + 0x66c], eax
mov eax, dword [esp + 0x674]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esi], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push edi
call ebx
push edi
mov dword [esi + 0x230], eax
call ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esi + 0x234], eax
xor eax, eax
push eax
push eax
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov ebp, 1
push edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x40], 0x28
mov dword [esp + 0x44], 0x190
mov dword [esp + 0x48], 0xfffffe70
mov word [esp + 0x4c], bp
mov word [esp + 0x4e], 0x20
mov dword [esp + 0x50], eax
call ebx
push 0
push 0
mov dword [esi + 0x238], eax
lea eax, [esp + 0x2c]
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
push edi
call ebx
mov edx, dword [esi + 0x238]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x230]
push edx
push eax
call ebx
mov ecx, dword [esi + 0x23c]
mov edx, dword [esi + 0x234]
push ecx
push edx
mov dword [esi + 0x238], eax
call ebx
mov dword [esi + 0x23c], eax
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x104
lea ecx, [esp + 0x64]
push ecx
push 0x23
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x413c60
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, dword [sym.imp.USER32.dll_SwapMouseButton]
neg eax
sbb eax, eax
add eax, ebp
push 0
mov dword [esi + 0x218], eax
mov dword [esi + 0x21c], 0
call edi
test eax, eax
je 0x401b1c
push ebp
call edi
mov dword [esi + 0x21c], ebp
push 0x413c64
lea eax, [esp + 0x26c]
mov dword [esi + 0x248], ebp
mov dword [esi + 0x24c], ebp
mov dword [esi + 0x25c], ebp
mov dword [esi + 0x250], ebp
mov dword [esi + 0x254], ebp
mov dword [esi + 0x258], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
mov dword [esi + 0x240], 0x100
mov dword [esi + 0x244], 0xff
call ebp
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x20]
push edx
xor edi, edi
push 0xf003f
push edi
lea eax, [esp + 0x274]
push eax
push 0x80000001
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401e46
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push str.show.date
mov ebp, 4
push ecx
mov dword [esp + 0x34], ebp
call ebx
test eax, eax
jne 0x401bee
cmp dword [esp + 0x18], ebp
jne 0x401bee
mov edx, dword [esp + 0x14]
mov dword [esi + 0x250], edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.show.digital_clock
push eax
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x401c23
cmp dword [esp + 0x18], ebp
jne 0x401c23
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x254], ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.show.hand_markers
push edx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x401c58
cmp dword [esp + 0x18], ebp
jne 0x401c58
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x258], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.show.second_hand
push ecx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x401c8d
cmp dword [esp + 0x18], ebp
jne 0x401c8d
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x25c], edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.topmost
push eax
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x401cc2
cmp dword [esp + 0x18], ebp
jne 0x401cc2
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x248], ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.color_secondary
push edx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x401cf7
cmp dword [esp + 0x18], ebp
jne 0x401cf7
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x244], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.size_win
push ecx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x401d2c
cmp dword [esp + 0x18], ebp
jne 0x401d2c
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x240], edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.x_win
push eax
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x401d5f
cmp dword [esp + 0x18], ebp
jne 0x401d5f
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.y_win
push edx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x401d8e
cmp dword [esp + 0x18], ebp
jne 0x401d8e
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.serial_number
push eax
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x401dc3
cmp dword [esp + 0x18], ebp
jne 0x401dc3
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x22c], ecx
mov eax, dword [esi + 0x240]
mov ebp, dword [esp + 0x50]
lea ecx, [eax + ebp]
lea edx, [eax + edi]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.004026e0
lea edx, [esp + 0x20]
push edx
push 0xf003f
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401e62
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x474]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esi + 8]
push eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x2c], 0x208
call ebx
test eax, eax
jne 0x401e51
mov eax, 1
cmp dword [esp + 0x18], eax
jne 0x401e51
mov dword [esi + 0x24c], eax
jmp 0x401e57
mov ebx, esi
call fcn.00402540
xor edi, edi
jmp 0x401e68
mov dword [esi + 0x24c], edi
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esi + 0x22c]
push edx
call fcn.00404730
add esp, 4
cmp eax, edi
mov dword [esi + 0x228], eax
jne 0x401e9d
mov dword [esi + 0x250], edi
mov dword [esi + 0x254], edi
mov dword [esi + 0x258], edi
mov dword [esi + 0x244], 0xff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and eax, 0x1ff
add eax, 0xffffffff
sar ecx, 9
cmp eax, 0x47
mov word [esp + 0x60], di
ja case.0x401ec8.8
movzx eax, byte [eax + 0x4021d0]
jmp dword [eax*4 + 0x40214c]
push 0x413de4
jmp 0x402079
push 0x413dec
lea edx, [esp + 0x64]
push edx
jmp 0x40207e
push 0x413df4
lea eax, [esp + 0x64]
push eax
jmp 0x40207e
push 0x413dfc
jmp 0x402079
push 0x413e04
lea edx, [esp + 0x64]
push edx
jmp 0x40207e
push 0x413e0c
lea eax, [esp + 0x64]
push eax
jmp 0x40207e
push 0x413e14
jmp 0x402079
push 0x413e1c
lea edx, [esp + 0x64]
push edx
jmp 0x40207e
push 0x413e24
lea eax, [esp + 0x64]
push eax
jmp 0x40207e
push 0x413e2c
jmp 0x402079
cmp ecx, edi
jne 0x401f64
push str.ZH_CH
lea edx, [esp + 0x64]
push edx
jmp 0x40207e
push str.ZH_TW
lea eax, [esp + 0x64]
push eax
jmp 0x40207e
push 0x413e4c
jmp 0x402079
push 0x413e54
lea edx, [esp + 0x64]
push edx
jmp 0x40207e
push 0x413e5c
lea eax, [esp + 0x64]
push eax
jmp 0x40207e
push 0x413e64
jmp 0x402079
push 0x413e6c
lea edx, [esp + 0x64]
push edx
jmp 0x40207e
push 0x413e74
lea eax, [esp + 0x64]
push eax
jmp 0x40207e
push 0x413e7c
jmp 0x402079
push 0x413e84
lea edx, [esp + 0x64]
push edx
jmp 0x40207e
push 0x413e8c
lea eax, [esp + 0x64]
push eax
jmp 0x40207e
push 0x413e94
jmp 0x402079
cmp ecx, 3
jne 0x402006
push 0x413e9c
lea edx, [esp + 0x64]
push edx
jmp 0x40207e
cmp ecx, 1
jne case.0x401ec8.8
push 0x413ea4
lea eax, [esp + 0x64]
push eax
jmp 0x40207e
push 0x413eac
jmp 0x402079
push 0x413eb4
lea edx, [esp + 0x64]
push edx
jmp 0x40207e
push 0x413ebc
lea eax, [esp + 0x64]
push eax
jmp 0x40207e
push 0x413ec4
jmp 0x402079
push 0x413ecc
lea edx, [esp + 0x64]
push edx
jmp 0x40207e
push 0x413ed4
lea eax, [esp + 0x64]
push eax
jmp 0x40207e
push 0x413edc
jmp 0x402079
push 0x413ee4
lea edx, [esp + 0x64]
push edx
jmp 0x40207e
push 0x413eec
lea eax, [esp + 0x64]
push eax
jmp 0x40207e
push 0x413ef4
lea ecx, [esp + 0x64]
push ecx
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.TRANSLATION
call ebx
cmp eax, edi
mov dword [esi + 0x210], eax
jne 0x4020b3
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4020b3
lea eax, [esp + 0x60]
push eax
call ebx
mov dword [esi + 0x210], eax
cmp dword [esi + 0x210], edi
jne 0x4020c8
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esi + 0x210], eax
cmp dword [esi + 0x248], edi
push 3
push edi
push edi
push edi
push edi
jne 0x4020dd
mov ecx, dword [esi]
push 0xfffffffffffffffe
push ecx
jmp 0x4020e2
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x210]
push 0x81
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
mov ecx, dword [esi + 0x228]
push ecx
push eax
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, esi
mov dword [esi + 4], eax
mov dword [esi + 0x214], 1
call fcn.00402770
mov edx, dword [esi]
push edi
push 0x3e8
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004048cc
add esp, 0x670
ret 4