Function at 0x180081f50
Capabilities:
Access peb ldr_data
Encode data using xor
Get geographical location
Get keyboard layout
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180153498]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, qword [0x180156fc0]
mov rsi, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800822c7
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800822c7
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x180156fc0]
xor ebx, ebx
mov r14, rax
test r8, r8
je 0x180082025
movsx r10, word [r8 + 0x60f0]
lea rdx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x18008201a
lea ecx, [r10 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
lea rdx, [r8 + 0x60f4]
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], ebx
inc word [rdx + 4]
inc dword [r8 + 0x60e8]
test r14, r14
je 0x180082047
xorps xmm0, xmm0
movups xmmword [r14], xmm0
movups xmmword [r14 + 0x10], xmm0
movups xmmword [r14 + 0x20], xmm0
movups xmmword [r14 + 0x30], xmm0
movups xmmword [r14 + 0x40], xmm0
jmp 0x18008204a
mov r14, rbx
or dword [rdi + 0xc], 6
lea rax, [0x18013c0a8]
mov qword [rdi + 0x80], rax
mov qword [rdi + 0x90], r14
mov qword [r14], rsi
mov rax, qword [rsp + 0x58]
mov qword [r14 + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [r14 + 0x18], rax
mov dword [r14 + 0x28], 9
test r8, r8
je 0x18008208e
mov rdi, qword [r8 + 0x90]
jmp 0x180082091
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 0x1800820bc
mov dword [rdi + 0x2c], ebx
mov rax, qword [0x180156fc0]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [r14 + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x180082133
inc rbx
cmp rbx, 5
jl 0x180082112
jmp 0x1800822b3
mov qword [r14 + 0x38], rsi
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1800821c7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1800821c7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x69c9330d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1800821c2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x1800821a0
cmp r8d, 0xbeddc99d
je 0x1800821cc
test r9d, r9d
jne 0x180082180
mov rax, qword [rax]
jmp 0x180082150
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, str.XInputGetCapabilities
add rax, r10
mov rcx, rsi
call rax
mov qword [r14 + 0x40], rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180082287
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180082287
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x69c9330d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180082282
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x180082260
cmp r8d, 0xbeddc99d
je 0x18008228c
test r9d, r9d
jne 0x180082240
mov rax, qword [rax]
jmp 0x180082210
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, str.XInputGetState
add rax, r10
mov rcx, rsi
call rax
mov qword [r14 + 0x48], rax
mov r14, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x1800822c9
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800f2170
mov rsi, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret