Function at 0x180003610
Capabilities:
Get geographical location
Get keyboard layout
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov rax, qword [0x180045400]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r14, r9
mov qword [rbp - 1], r8
mov edi, edx
mov r12, rcx
call fcn.18001d0e0
test rax, rax
je case.0x180003c0c.527
call fcn.18001d3f0
mov r15, rax
call fcn.18001d0e0
xor ebx, ebx
test rax, rax
je 0x180003673
call fcn.18001d3f0
mov rsi, qword [rax + 0x88]
jmp 0x180003676
mov rsi, rbx
cmp edi, 0x200
ja 0x180003be2
je case.0x1800036af.160
lea eax, [rdi - 7]
cmp eax, 0xfe
ja case.0x180003c0c.527
lea rdx, [0x180000000]
movzx eax, byte [rdx + rax + 0x3e48]
mov ecx, dword [rdx + rax*4 + 0x3e2c]
add rcx, rdx
jmp rcx
lea eax, [rdi - 0x100]
mov r15d, pe_nt_image_headers64
test eax, 0xfffffffb
sete dil
cmp qword [rbp - 1], r15
jae case.0x180003c0c.527
call fcn.18001d3f0
mov ecx, 0x11
mov rbx, rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x1000
and al, 1
mov rcx, rbx
movzx r8d, al
call fcn.180016ab0
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x2000
and al, 1
mov rcx, rbx
movzx r8d, al
call fcn.180016ab0
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x4000
and al, 1
mov rcx, rbx
movzx r8d, al
call fcn.180016ab0
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x8000
and al, 1
mov rcx, rbx
movzx r8d, al
call fcn.180016ab0
mov rsi, qword [rbp - 1]
cmp rsi, 0xd
jne 0x180003779
mov rax, r14
shr rax, 0x10
test r15w, ax
mov eax, 0x10d
cmovne esi, eax
movsxd rcx, esi
call fcn.180003030
shr r14, 0x10
mov r15d, eax
movzx r14d, r14b
cmp eax, 0x262
jne 0x1800037c9
test dil, dil
jne 0x1800037ce
call fcn.18001d3f0
mov r8b, 1
mov edx, r15d
mov rcx, rax
mov rbx, rax
call fcn.180016ab0
mov r9d, r14d
mov dword [rsp + 0x20], 0xffffffff
mov r8d, esi
mov edx, r15d
mov rcx, rbx
call fcn.180028550
jmp 0x1800037ce
test r15d, r15d
je 0x1800037fe
call fcn.18001d3f0
movzx r8d, dil
mov edx, r15d
mov rcx, rax
mov rbx, rax
call fcn.180016ab0
mov r9d, r14d
mov dword [rsp + 0x20], 0xffffffff
mov r8d, esi
mov edx, r15d
mov rcx, rbx
call fcn.180028550
cmp esi, 0x10
jne 0x1800038a8
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x180003853
call fcn.18001d3f0
movzx r8d, dil
mov edx, 0x210
mov rcx, rax
mov rbx, rax
call fcn.180016ab0
mov r9d, r14d
mov dword [rsp + 0x20], 0xffffffff
mov edx, 0x210
mov r8d, 0xa0
mov rcx, rbx
call fcn.180028550
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x180003c0c.527
call fcn.18001d3f0
movzx r8d, dil
mov edx, 0x214
mov rcx, rax
mov rbx, rax
call fcn.180016ab0
mov r9d, r14d
mov dword [rsp + 0x20], 0xffffffff
mov edx, 0x214
mov r8d, 0xa1
mov rcx, rbx
call fcn.180028550
jmp case.0x180003c0c.527
cmp esi, 0x11
jne 0x180003952
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x1800038fd
call fcn.18001d3f0
movzx r8d, dil
mov edx, 0x20f
mov rcx, rax
mov rbx, rax
call fcn.180016ab0
mov r9d, r14d
mov dword [rsp + 0x20], 0xffffffff
mov edx, 0x20f
mov r8d, 0xa2
mov rcx, rbx
call fcn.180028550
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x180003c0c.527
call fcn.18001d3f0
movzx r8d, dil
mov edx, 0x213
mov rcx, rax
mov rbx, rax
call fcn.180016ab0
mov r9d, r14d
mov dword [rsp + 0x20], 0xffffffff
mov edx, 0x213
mov r8d, 0xa3
mov rcx, rbx
call fcn.180028550
jmp case.0x180003c0c.527
cmp esi, 0x12
jne case.0x180003c0c.527
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x1800039a7
call fcn.18001d3f0
movzx r8d, dil
mov edx, 0x211
mov rcx, rax
mov rbx, rax
call fcn.180016ab0
mov r9d, r14d
mov dword [rsp + 0x20], 0xffffffff
mov edx, 0x211
mov r8d, 0xa4
mov rcx, rbx
call fcn.180028550
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x180003c0c.527
call fcn.18001d3f0
movzx r8d, dil
mov edx, 0x215
mov rcx, rax
mov rbx, rax
call fcn.180016ab0
mov r9d, r14d
mov dword [rsp + 0x20], 0xffffffff
mov edx, 0x215
mov r8d, 0xa5
mov rcx, rbx
call fcn.180028550
jmp case.0x180003c0c.527
cmp edi, 7
mov rcx, r15
sete dl
call fcn.180016710
jmp case.0x180003c0c.527
call fcn.18001d0e0
test rax, rax
je 0x180003a27
call fcn.18001d3f0
mov rdi, qword [rax + 0x88]
jmp 0x180003a2a
mov rdi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rdi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne case.0x180003c0c.527
mov dword [rdi + 0x2c], ebx
jmp case.0x180003c0c.527
mov rcx, r12
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x180003a8c
mov rdx, qword [rbp - 1]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja case.0x180003c0c.527
mov rcx, r15
call fcn.180016820
jmp case.0x180003c0c.527
mov ecx, dword [rsi + 0x2c]
lea rax, [rbp - 9]
mov r14d, 1
mov word [rbp - 9], bx
mov dword [rsp + 0x28], r14d
lea r8, [rbp - 1]
mov r9d, r14d
mov qword [rsp + 0x20], rax
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx edx, word [rbp - 9]
mov rcx, r15
call fcn.1800167b0
jmp case.0x180003c0c.527
cmp r14w, 1
jne case.0x180003c0c.527
call fcn.1800026a0
test al, al
je case.0x180003c0c.527
mov eax, 1
jmp 0x180003e0b
call qword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov ecx, 0xffffff80
mov edx, 0xff515700
mov r8, rax
and r8, rcx
mov ecx, 2
cmp r8, rdx
jne 0x180003b0f
mov dword [rbp - 9], ecx
jmp 0x180003b1f
mov edx, ebx
mov eax, 0xff515780
cmp r8, rax
sete dl
mov dword [rbp - 9], edx
mov eax, dword [rsi + 0x10]
cmp edi, 0x200
mov r13d, ebx
mov qword [rsi + 8], r12
setne r13b
inc r13d
cmp eax, r13d
je 0x180003b8b
cmp edi, 0x200
mov dword [rbp - 0x39], 0x18
mov edx, 0x12
mov dword [rbp - 0x35], 0x80000000
cmovne ecx, edx
mov qword [rbp - 0x31], r12
mov dword [rbp - 0x1d], ecx
mov dword [rbp - 0x29], ebx
mov dword [rbp - 0x21], 0x18
mov qword [rbp - 0x19], r12
mov dword [rbp - 0x11], ebx
test eax, eax
je 0x180003b7d
lea rcx, [rbp - 0x39]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
lea rcx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [rsi + 0x10], r13d
movsx eax, r14w
shr r14, 0x10
mov dword [rbp + 7], eax
movsx eax, r14w
mov dword [rbp + 0xb], eax
cmp edi, 0xa0
jne 0x180003bba
lea rdx, [rbp + 7]
mov rcx, r12
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x180003c0c.527
mov edx, dword [rbp - 9]
mov rcx, r15
call fcn.180016e20
movd xmm2, dword [rbp + 0xb]
mov rcx, r15
movd xmm1, dword [rbp + 7]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.180016ce0
jmp case.0x180003c0c.527
lea eax, [rdi - 0x201]
cmp eax, 0xa2
ja case.0x180003c0c.527
lea rdx, [0x180000000]
movzx eax, byte [rdx + rax + 0x3f64]
mov ecx, dword [rdx + rax*4 + 0x3f48]
add rcx, rdx
jmp rcx
cmp edi, 0x2a3
mov eax, ebx
setne al
inc eax
cmp dword [rsi + 0x10], eax
jne case.0x180003c0c.527
cmp qword [rsi + 8], r12
jne 0x180003c2e
mov qword [rsi + 8], rbx
movss xmm1, dword [0x18003f0fc]
mov rcx, r15
movaps xmm2, xmm1
mov dword [rsi + 0x10], ebx
call fcn.180016ce0
jmp case.0x180003c0c.527
call qword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov ecx, 0xffffff80
mov edx, 0xff515700
mov r8, rax
and r8, rcx
mov ecx, 2
cmp r8, rdx
jne 0x180003c6e
mov r13d, ecx
jmp 0x180003c7d
mov eax, 0xff515780
mov r13d, ebx
cmp r8, rax
sete r13b
cmp edi, 0x204
je 0x180003c90
mov r14d, ebx
cmp edi, 0x206
jne 0x180003c96
mov r14d, 1
lea eax, [rdi - 0x207]
test eax, 0xfffffffd
lea eax, [rdi - 0x20b]
cmove r14d, ecx
test eax, 0xfffffffd
jne 0x180003cc5
mov rax, qword [rbp - 1]
shr rax, 0x10
cmp ax, 1
setne bl
lea r14d, [rbx + 3]
cmp dword [rsi + 0x14], 0
jne 0x180003cdf
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x180003cdf
mov rcx, r12
call qword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [rsi + 0x14]
mov edx, r13d
bts eax, r14d
mov rcx, r15
mov dword [rsi + 0x14], eax
call fcn.180016e20
mov r8b, 1
mov edx, r14d
mov rcx, r15
call fcn.180016c20
jmp case.0x180003c0c.527
call qword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov ecx, 0xffffff80
mov edx, 0xff515700
mov r8, rax
and r8, rcx
mov ecx, 2
cmp r8, rdx
jne 0x180003d2c
mov r13d, ecx
jmp 0x180003d3b
mov eax, 0xff515780
mov r13d, ebx
cmp r8, rax
sete r13b
cmp edi, 0x205
mov r14d, ebx
sete r14b
cmp edi, 0x208
jne 0x180003d55
mov r14d, ecx
jmp 0x180003d74
cmp edi, 0x20c
jne 0x180003d74
mov rax, qword [rbp - 1]
mov r14d, ebx
shr rax, 0x10
cmp ax, 1
setne r14b
add r14d, 3
mov eax, dword [rsi + 0x14]
btr eax, r14d
mov dword [rsi + 0x14], eax
test eax, eax
jne 0x180003d93
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r12
jne 0x180003d93
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov edx, r13d
mov rcx, r15
call fcn.180016e20
xor r8d, r8d
mov edx, r14d
mov rcx, r15
call fcn.180016c20
jmp case.0x180003c0c.527
mov rax, qword [rbp - 1]
xorps xmm1, xmm1
shr rax, 0x10
mov rcx, r15
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x18003f0ec]
call fcn.180016e30
jmp case.0x180003c0c.527
mov rax, qword [rbp - 1]
xorps xmm2, xmm2
shr rax, 0x10
mov rcx, r15
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm1, xmmword [0x18003f120]
divss xmm1, dword [0x18003f0ec]
call fcn.180016e30
jmp case.0x180003c0c.527
cmp dword [rbp - 1], 7
jne case.0x180003c0c.527
mov byte [rsi + 0x31], 1
xor eax, eax
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.180034590
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret