Function at 0x140027040
Capabilities:
Access peb ldr_data
Check os version
Encode data using xor
Hash data using fnv
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x100
mov rax, qword [0x140295040]
xor rax, rsp
mov qword [rbp + 0x27], rax
cmp byte [0x1402d2b88], 0
jne 0x140027620
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
xor esi, esi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
mov r12d, 0x411
mov qword [r11 - 0x10], r14
movabs r14, 0x7fffffffffffffff
mov qword [r11 - 0x18], r15
mov r15d, 0xff
movaps xmmword [r11 - 0x28], xmm6
nop
mov eax, dword [0x1402d2b98]
lea rcx, [rbp - 0x61]
inc eax
movsxd rbx, eax
call fcn.140001570
mov rcx, qword [rbp - 0x61]
mov qword [rbp - 0x79], rcx
test rbx, rbx
je 0x1400270f0
js 0x1400270f0
imul r8, rbx, 0xf4240
mov rax, r14
sub rax, r8
cmp rcx, rax
je 0x1400270ec
mov edx, 1
cmovl edx, r15d
test dl, dl
jns 0x1400270ec
lea rax, [r8 + rcx]
mov qword [rbp - 0x79], rax
jmp 0x1400270f0
mov qword [rbp - 0x79], r14
lea rcx, [rbp - 0x79]
call fcn.140004960
cmp byte [0x1402d2a60], sil
je 0x1400275db
cmp qword [0x1402d4220], rsi
je 0x1400275db
mov ecx, dword [0x1402d2a64]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1400271f9
cmp byte [0x1402d3ea9], sil
je 0x1400275db
mov dword [rbp - 0x31], esi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x2d], xmm0
mov dword [rbp - 0x1d], 4
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x1400271d7
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x1400271d7
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x98a3368f
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1400271d2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x1400271b0
cmp r8d, 0xa536f8f
je 0x1400271dc
test r9d, r9d
jne 0x140027190
mov rax, qword [rax]
jmp 0x140027160
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [rbp - 0x31]
jmp 0x1400275c4
mov rcx, qword [0x1402d3e28]
test rcx, rcx
je 0x140027230
cmp dword [0x1402d3d94], esi
je 0x140027230
mov rdx, qword [0x1402d3ff0]
lea r8, [rbp - 9]
mov r9d, 8
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1402d3e28]
mov rdi, qword [rbp - 9]
mov qword [rbp - 0x41], rdi
test rdi, rdi
je 0x1400274f0
movaps xmm0, xmmword [0x1402d4220]
movaps xmm6, xmmword [0x1402d4230]
movups xmmword [rbp - 0x31], xmm0
test rcx, rcx
je 0x140027280
cmp dword [0x1402d3d94], esi
je 0x140027280
lea rdx, [rdi + 0x90]
mov qword [rsp + 0x20], rsi
mov r9d, 0xc
lea r8, [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdi, qword [rbp - 0x41]
movaps xmm0, xmm6
movaps xmm1, xmm6
shufps xmm1, xmm6, 0xaa
subss xmm1, dword [rbp - 0x6d]
shufps xmm0, xmm6, 0x55
subss xmm0, dword [rbp - 0x71]
shufps xmm6, xmm6, 0xff
subss xmm6, dword [rbp - 0x69]
mulss xmm1, xmm1
mulss xmm0, xmm0
mulss xmm6, xmm6
addss xmm1, xmm0
xorps xmm0, xmm0
addss xmm1, xmm6
ucomiss xmm0, xmm1
ja 0x1400272c6
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x1400272ce
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movd xmm1, dword [0x1402d2a6c]
mov rcx, rdi
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
setbe bl
call fcn.140026fb0
test al, al
je 0x1400272f8
cmp byte [0x1402d2a68], sil
movzx ebx, bl
cmove ebx, esi
cmp byte [0x1402d2a49], sil
mov rcx, qword [0x1402d3e28]
je 0x140027351
mov rdx, qword [rbp - 0x41]
test rdx, rdx
je 0x14002734f
test rcx, rcx
je 0x140027341
cmp dword [0x1402d3d94], esi
je 0x140027341
add rdx, qword [0x1402d3d78]
lea r8, [rbp - 0x39]
mov r9d, 1
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1402d3e28]
movzx eax, byte [rbp - 0x39]
cmp al, 0xa
ja 0x140027351
bt r12d, eax
jae 0x140027351
xor bl, bl
test rcx, rcx
je 0x14002737a
cmp dword [0x1402d3d94], esi
je 0x14002737a
mov rdx, qword [0x1402d3fe8]
lea r8, [rbp - 0x38]
mov r9d, 1
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [rbp - 0x38], sil
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x51]
lea rcx, [0x1402d3f40]
cmove ebx, esi
call fcn.140027640
mov edx, esi
mov rcx, qword [rax]
movzx eax, bl
cmp byte [rcx + 0x58], dl
cmove edx, eax
test dl, dl
je 0x1400274f0
cmp byte [0x1402d3ea9], sil
jne 0x1400275db
movsxd rbx, dword [0x1402d2a70]
lea rcx, [rbp - 0x59]
call fcn.140001570
mov rax, qword [rbp - 0x59]
mov qword [rbp - 0x79], rax
test rbx, rbx
je 0x140027404
js 0x140027404
imul r8, rbx, 0xf4240
mov rcx, r14
sub rcx, r8
cmp rax, rcx
je 0x140027400
mov edx, 1
cmovl edx, r15d
test dl, dl
jns 0x140027400
lea rcx, [r8 + rax]
mov qword [rbp - 0x79], rcx
jmp 0x140027404
mov qword [rbp - 0x79], r14
lea rcx, [rbp - 0x79]
call fcn.140004960
mov dword [rbp - 0x31], esi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x2d], xmm0
mov dword [rbp - 0x1d], 2
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
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 edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x1400274b7
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x1400274b7
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xec5048db
lea rcx, [r10 + r9*4]
mov edx, dword [rcx + rbx]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1400274b2
nop dword [rax]
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140027490
cmp r8d, 0xdcb002e3
je 0x1400274bc
test r9d, r9d
jne 0x140027470
mov rax, qword [rax]
jmp 0x140027440
mov ecx, dword [rdi + 0x24]
mov r8d, 0x28
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [rbp - 0x31]
add rax, r10
mov ecx, 1
call rax
mov byte [0x1402d3ea9], 1
jmp 0x1400275db
cmp byte [0x1402d3ea9], sil
je 0x1400275db
mov dword [rbp - 1], esi
xorps xmm0, xmm0
movdqu xmmword [rbp + 3], xmm0
mov dword [rbp + 0x13], 4
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
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 edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x1400275a7
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x1400275a7
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x48818fda
lea rcx, [r10 + r9*4]
mov edx, dword [rcx + rbx]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1400275a2
nop dword [rax]
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140027580
cmp r8d, 0xcceedc8c
je 0x1400275ac
test r9d, r9d
jne 0x140027560
mov rax, qword [rax]
jmp 0x140027530
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [rbp - 1]
mov r8d, 0x28
mov ecx, 1
add rax, r10
call rax
mov byte [0x1402d3ea9], sil
cmp byte [0x1402d2b88], sil
je 0x1400270a0
movaps xmm6, xmmword [rsp + 0xe0]
mov r15, qword [rsp + 0xf0]
mov r14, qword [rsp + 0xf8]
mov r12, qword [rsp + 0x128]
mov rdi, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140089c70
add rsp, 0x100
pop rbp
ret