Function at 0x7ff60516c6a0
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, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x7ff60566c600]
xor rax, rsp
mov qword [rbp - 9], rax
mov rbx, qword [0x7ff605749b08]
mov r15, r9
mov qword [rbp - 0x19], r8
mov r14d, edx
mov r12, rcx
test rbx, rbx
je case.0x7ff60516cf3f.527
mov rsi, qword [rbx + 0x90]
test rsi, rsi
je case.0x7ff60516cf3f.527
add rbx, 8
cmp edx, 0x200
ja 0x7ff60516cf15
je case.0x7ff60516c739.160
lea eax, [rdx - 7]
cmp eax, 0xfe
ja case.0x7ff60516cf3f.527
lea rdx, [0x7ff605030000]
movzx eax, byte [rdx + rax + 0x13d194]
mov ecx, dword [rdx + rax*4 + 0x13d178]
add rcx, rdx
jmp rcx
lea eax, [r14 - 0x100]
mov esi, 0x100
test eax, 0xfffffffb
sete dil
cmp r8, rsi
jae case.0x7ff60516cf3f.527
mov ecx, 0x11
call qword [sym.imp.user32.dll_GetKeyState]
movss xmm6, dword [0x7ff605631a0c]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x2b81], 0
je 0x7ff60516c797
test al, al
je 0x7ff60516c783
movaps xmm3, xmm6
jmp 0x7ff60516c786
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x1000
mov rcx, rbx
call fcn.7ff60516ec30
mov ecx, 0x10
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x2b81], 0
je 0x7ff60516c7cd
test al, al
je 0x7ff60516c7b9
movaps xmm3, xmm6
jmp 0x7ff60516c7bc
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x2000
mov rcx, rbx
call fcn.7ff60516ec30
mov ecx, 0x12
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x2b81], 0
je 0x7ff60516c803
test al, al
je 0x7ff60516c7ef
movaps xmm3, xmm6
jmp 0x7ff60516c7f2
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x4000
mov rcx, rbx
call fcn.7ff60516ec30
mov ecx, 0x5d
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x2b81], 0
je 0x7ff60516c839
test al, al
je 0x7ff60516c825
movaps xmm3, xmm6
jmp 0x7ff60516c828
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x8000
mov rcx, rbx
call fcn.7ff60516ec30
mov rbx, qword [rbp - 0x19]
cmp rbx, 0xd
jne 0x7ff60516c853
shr r15, 0x10
mov eax, 0x10d
test si, r15w
cmovne ebx, eax
movsxd r15, ebx
mov rcx, r15
call fcn.7ff60516c0c0
movsxd rsi, eax
cmp esi, 0x262
jne 0x7ff60516c8ac
test dil, dil
jne 0x7ff60516c8b0
mov r14, qword [0x7ff605749b08]
cmp byte [r14 + 0x2b89], dil
je 0x7ff60516c88f
movaps xmm3, xmm6
lea rcx, [r14 + 8]
mov r8b, 1
mov edx, esi
call fcn.7ff60516ec30
cmp ebx, 0x1ff
ja 0x7ff60516c8b0
mov dword [r14 + r15*4 + 0x2ba0], 0x262
mov dword [r14 + 0x3528], ebx
jmp 0x7ff60516c8b0
test eax, eax
je 0x7ff60516c8f5
mov r14, qword [0x7ff605749b08]
cmp byte [r14 + 0x2b89], 0
je 0x7ff60516c8dd
test dil, dil
je 0x7ff60516c8cb
movaps xmm3, xmm6
jmp 0x7ff60516c8ce
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [r14 + 8]
mov edx, esi
call fcn.7ff60516ec30
cmp ebx, 0x1ff
ja 0x7ff60516c8f5
mov dword [r14 + r15*4 + 0x2ba0], esi
mov dword [r14 + rsi*4 + 0x2ba0], ebx
cmp ebx, 0x10
jne 0x7ff60516c9b5
mov ecx, 0xa0
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x7ff60516c956
mov rbx, qword [0x7ff605749b08]
cmp byte [rbx + 0x2b89], 0
je 0x7ff60516c942
test dil, dil
je 0x7ff60516c92d
movaps xmm3, xmm6
jmp 0x7ff60516c930
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x210
call fcn.7ff60516ec30
mov dword [rbx + 0x2e20], 0x210
mov dword [rbx + 0x33e0], 0xa0
mov ecx, 0xa1
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x7ff60516cf3f.527
mov rbx, qword [0x7ff605749b08]
cmp byte [rbx + 0x2b89], 0
je 0x7ff60516c99c
test dil, dil
jne 0x7ff60516c987
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x214
call fcn.7ff60516ec30
mov dword [rbx + 0x2e24], 0x214
mov dword [rbx + 0x33f0], 0xa1
jmp case.0x7ff60516cf3f.527
cmp ebx, 0x11
jne 0x7ff60516ca75
mov ecx, 0xa2
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x7ff60516ca16
mov rbx, qword [0x7ff605749b08]
cmp byte [rbx + 0x2b89], 0
je 0x7ff60516ca02
test dil, dil
je 0x7ff60516c9ed
movaps xmm3, xmm6
jmp 0x7ff60516c9f0
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x20f
call fcn.7ff60516ec30
mov dword [rbx + 0x2e28], 0x20f
mov dword [rbx + 0x33dc], 0xa2
mov ecx, 0xa3
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x7ff60516cf3f.527
mov rbx, qword [0x7ff605749b08]
cmp byte [rbx + 0x2b89], 0
je 0x7ff60516ca5c
test dil, dil
jne 0x7ff60516ca47
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x213
call fcn.7ff60516ec30
mov dword [rbx + 0x2e2c], 0x213
mov dword [rbx + 0x33ec], 0xa3
jmp case.0x7ff60516cf3f.527
cmp ebx, 0x12
jne case.0x7ff60516cf3f.527
mov ecx, 0xa4
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x7ff60516cad6
mov rbx, qword [0x7ff605749b08]
cmp byte [rbx + 0x2b89], 0
je 0x7ff60516cac2
test dil, dil
je 0x7ff60516caad
movaps xmm3, xmm6
jmp 0x7ff60516cab0
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x211
call fcn.7ff60516ec30
mov dword [rbx + 0x2e30], 0x211
mov dword [rbx + 0x33e4], 0xa4
mov ecx, 0xa5
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x7ff60516cf3f.527
mov rbx, qword [0x7ff605749b08]
cmp byte [rbx + 0x2b89], 0
je 0x7ff60516cb1c
test dil, dil
jne 0x7ff60516cb07
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x215
call fcn.7ff60516ec30
mov dword [rbx + 0x2e34], 0x215
mov dword [rbx + 0x33f4], 0xa5
jmp case.0x7ff60516cf3f.527
mov rdx, qword [rbx + 0xe8]
cmp r14d, 7
sete r8b
lea rdi, [rdx + 0x3f90]
mov r9d, dword [rdi]
lea eax, [r9 - 1]
test eax, eax
js 0x7ff60516cb73
movsxd rcx, eax
imul rax, rcx, 0x1c
add rax, qword [rdx + 0x3f98]
cmp dword [rax], 6
je 0x7ff60516cbde
sub rax, 0x1c
sub rcx, 1
jns 0x7ff60516cb64
cmp byte [rdx + 0x2b88], 0
sete cl
cmp cl, r8b
je case.0x7ff60516cf3f.527
cmp byte [rbx + 0x73], 0
je 0x7ff60516cb96
cmp r14d, 7
jne case.0x7ff60516cf3f.527
mov eax, dword [rdx + 0x3fb4]
xor ebx, ebx
xorps xmm0, xmm0
mov qword [rbp - 0x49], rbx
movups xmmword [rbp - 0x59], xmm0
mov dword [rbp - 0x51], eax
inc eax
mov dword [rdx + 0x3fb4], eax
mov byte [rbp - 0x4d], r8b
mov r8d, dword [rdi + 4]
mov dword [rbp - 0x59], 6
cmp r9d, r8d
jne 0x7ff60516cbf8
lea ecx, [r9 + 1]
test r8d, r8d
je 0x7ff60516cbe4
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x7ff60516cbe9
movzx ecx, byte [rax + 0xc]
jmp 0x7ff60516cb7d
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rdi
call fcn.7ff605188630
movsxd rax, dword [rdi]
movups xmm0, xmmword [rbp - 0x59]
movsd xmm1, qword [rbp - 0x49]
imul rcx, rax, 0x1c
mov rax, qword [rdi + 8]
movups xmmword [rcx + rax], xmm0
movsd qword [rcx + rax + 0x10], xmm1
mov dword [rcx + rax + 0x18], ebx
inc dword [rdi]
jmp case.0x7ff60516cf3f.527
xor ecx, ecx
call qword [sym.imp.user32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
jne case.0x7ff60516cf3f.527
xor edi, edi
mov dword [rsi + 0x2c], edi
jmp case.0x7ff60516cf3f.527
mov rcx, r12
call qword [sym.imp.user32.dll_IsWindowUnicode]
test eax, eax
je 0x7ff60516cd1b
mov rdi, qword [rbp - 0x19]
lea rax, [rdi - 1]
cmp rax, 0xfffe
ja case.0x7ff60516cf3f.527
test di, di
jne 0x7ff60516cc8e
cmp word [rbx + 0x2b84], di
je case.0x7ff60516cf3f.527
cmp byte [rbx + 0x2b81], 0
je case.0x7ff60516cf3f.527
mov ecx, 0xfc00
movzx eax, di
and ax, cx
mov edx, 0xd800
movzx ecx, word [rbx + 0x2b84]
cmp ax, dx
jne 0x7ff60516ccd5
test cx, cx
je 0x7ff60516ccc9
mov edx, 0xfffd
mov rcx, rbx
call fcn.7ff60516eb70
mov word [rbx + 0x2b84], di
jmp case.0x7ff60516cf3f.527
movzx esi, di
test cx, cx
je 0x7ff60516cd0c
mov edx, 0xdc00
cmp ax, dx
je 0x7ff60516ccf6
mov edx, 0xfffd
mov rcx, rbx
call fcn.7ff60516eb70
jmp 0x7ff60516cd03
mov eax, ecx
add esi, 0xfca02400
shl eax, 0xa
add esi, eax
xor edi, edi
mov word [rbx + 0x2b84], di
mov edx, esi
mov rcx, rbx
call fcn.7ff60516eb70
jmp case.0x7ff60516cf3f.527
mov eax, 1
lea rcx, [rbp - 0x21]
mov dword [rsp + 0x28], eax
lea r8, [rbp - 0x19]
mov qword [rsp + 0x20], rcx
xor edi, edi
mov ecx, dword [rsi + 0x2c]
mov r9d, eax
mov edx, eax
mov word [rbp - 0x21], di
call qword [sym.imp.kernel32.dll_MultiByteToWideChar]
movzx r8d, word [rbp - 0x21]
mov rdx, qword [rbx + 0xe8]
test r8d, r8d
je case.0x7ff60516cf3f.527
cmp byte [rbx + 0x2b81], dil
invalid