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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x200
mov rax, qword [0x1400b0700]
xor rax, rsp
mov qword [rbp + 0xf8], rax
mov al, 0x4c
mov byte [rsp + 0x60], 0x7b
xor al, 0x7b
lea rdx, [0x14009cf36]
mov r15, rcx
mov byte [rsp + 0x61], al
xor r12d, r12d
lea rcx, [rbp - 0x10]
mov byte [rsp + 0x62], r12b
call fcn.140022fec
lea rdx, [0x1400a17a4]
mov rbx, rax
lea rcx, [rbp + 0x10]
call fcn.140022fec
movdqa xmm0, xmmword [0x1400a21c0]
lea r13d, [r12 + 1]
movdqa xmm1, xmmword [0x1400a2220]
mov rdi, rax
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x38], 0x7b
mov ecx, r12d
movdqu xmmword [rbp - 0x48], xmm1
mov al, byte [rbp - 0x58]
xor byte [rbp + rcx - 0x57], al
add rcx, r13
cmp rcx, 0x20
jb 0x140022269
lea rdx, [rbp - 0x57]
mov byte [rbp - 0x37], r12b
lea rcx, [rbp + 0x30]
call fcn.140022fec
mov r9, rbx
lea rcx, [rbp - 0x30]
mov r8, rdi
mov rdx, rax
call fcn.14001ef70
lea rdx, [rsp + 0x61]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], r12b
jne 0x1400222a5
cmp qword [rax + 0x18], 0x10
mov r8, qword [rax + 0x10]
jb 0x1400222bc
mov rax, qword [rax]
cmp r8, rcx
jne 0x1400222d5
lea rdx, [rsp + 0x61]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
mov bl, r12b
test eax, eax
je 0x1400222d8
mov bl, r13b
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140022316
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022311
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022311
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008579c
test bl, bl
je 0x14002231f
call fcn.140020014
mov ebx, 0x50
lea rcx, [rbp + 0x60]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400220ec]
mov dword [rbp + 0x60], ebx
mov qword [rbp + 0x68], rax
mov cl, 0x42
xor eax, eax
mov qword [rbp + 0x78], r15
mov byte [rsp + 0x7a], al
mov dword [rsp + 0x74], 0x20300d42
mov word [rsp + 0x78], 0x362b
xor byte [rsp + rax + 0x75], cl
add rax, r13
cmp rax, 5
jae 0x14002236e
mov cl, byte [rsp + 0x74]
jmp 0x14002235b
lea rax, [rsp + 0x75]
mov edx, 0x65
mov rcx, r15
mov qword [rbp + 0xa0], rax
call qword [sym.imp.USER32.dll_LoadIconA]
mov dword [rbp + 0x64], 3
or r14d, 0xffffffff
mov qword [rbp + 0x80], rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x140022410
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x140022410
mov edi, dword [r10 + 0x20]
add r9d, r14d
mov r11d, 0x811c9dc5
lea rcx, [r8 + r9*4]
mov edx, dword [rcx + rdi]
add rdx, r8
mov cl, byte [rdx]
add rdx, r13
test cl, cl
je 0x14002240b
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
add rdx, r13
test cl, cl
jne 0x1400223ec
cmp r11d, 0xeca33424
je 0x140022415
test r9d, r9d
jne 0x1400223d0
mov rax, qword [rax]
jmp 0x1400223ab
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
lea rcx, [rbp + 0x60]
add rax, r8
call rax
test ax, ax
jne 0x140022529
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
mov r10, rbx
mov r8, qword [r10 + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x1400224b4
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x1400224b4
mov esi, dword [r9 + 0x20]
add edx, r14d
mov r11d, 0x811c9dc5
lea rax, [r8 + rdx*4]
mov ecx, dword [rax + rsi]
add rcx, r8
mov al, byte [rcx]
add rcx, r13
test al, al
je 0x1400224b0
movsx eax, al
xor eax, r11d
imul r11d, eax, 0x1000193
mov al, byte [rcx]
add rcx, r13
test al, al
jne 0x140022491
cmp r11d, 0x23a979e4
je 0x14002250e
test edx, edx
jne 0x140022475
mov rax, qword [r10]
mov r10, rax
cmp rax, rbx
jne 0x140022451
mov r10, r12
movdqa xmm0, xmmword [0x1400a21e0]
mov rcx, r12
movdqa xmm1, xmmword [0x1400a1c50]
movdqu xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x60], 0x1a1d57
movdqu xmmword [rbp - 0x70], xmm1
mov al, byte [rbp - 0x80]
xor byte [rbp + rcx - 0x7f], al
add rcx, r13
cmp rcx, 0x22
jb 0x1400224e6
xor r9d, r9d
mov byte [rbp - 0x5d], r12b
xor r8d, r8d
lea rdx, [rbp - 0x7f]
xor ecx, ecx
call r10
jmp 0x140022c0a
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov r10d, dword [rcx + rdx*4]
add r10, r8
jmp 0x1400224c2
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rbp + 0xb8]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp + 0xc0]
mov esi, 0x40
cdq
mov dword [rsp + 0x64], 0x6d7d400f
sub eax, edx
mov word [rsp + 0x68], 0x7b66
sar eax, 1
lea r8d, [rax - 0x96]
mov eax, dword [rbp + 0xc4]
cdq
sub eax, edx
mov dl, reloc.WS2_32.dll_ntohs
sar eax, 1
sub eax, 0x4b
xor ecx, ecx
mov byte [rsp + 0x6a], cl
xor byte [rsp + rcx + 0x65], dl
add rcx, r13
cmp rcx, 5
jae 0x14002258e
mov dl, byte [rsp + 0x64]
jmp 0x14002257b
mov rdx, qword [rbp + 0xa0]
mov r9d, 0x80000000
mov qword [rsp + 0x58], r12
xor ecx, ecx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], 0x14a
mov dword [rsp + 0x30], 0x1ad
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea r8, [rsp + 0x65]
mov byte [rsp + 0x6a], r12b
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov r14, rax
test rax, rax
jne 0x1400225eb
lea eax, [r14 + 2]
jmp 0x140022c0c
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rdi, rax
test rax, rax
jne 0x14002260e
mov rcx, qword [rbp + 0xa0]
mov rdx, r15
call qword [sym.imp.USER32.dll_UnregisterClassA]
lea rbx, [0x1400d2380]
mov r8, rsi
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [0x1400d23a8], r13d
lea rcx, [0x1400d2268]
mov qword [rsp + 0x30], rcx
mov r9, r14
mov dword [0x1400d2398], r13d
mov rcx, rdi
mov dword [0x1400d2388], r12d
mov r8d, r13d
mov dword [0x1400d23ac], r13d
xor edx, edx
mov dword [0x1400d23b0], 0x50
mov dword [0x1400d23bc], r13d
mov rax, qword [rdi]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
call qword [rax + pe_nt_image_headers64]
test eax, eax
jns 0x140022691
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0xa0]
jmp 0x140022c01
mov rcx, r14
call fcn.14001ce20
call fcn.14001f3d0
xor edx, edx
lea rcx, [rbp + 0xc8]
lea r8d, [rdx + 0x30]
call sub.VCRUNTIME140.dll_memset
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x140022726
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x140022726
mov esi, dword [r10 + 0x20]
dec r9d
mov r11d, 0x811c9dc5
lea rcx, [r8 + r9*4]
mov edx, dword [rcx + rsi]
add rdx, r8
mov cl, byte [rdx]
add rdx, r13
test cl, cl
je 0x140022721
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
add rdx, r13
test cl, cl
jne 0x140022702
cmp r11d, 0x1de05d54
je 0x14002272b
test r9d, r9d
jne 0x1400226e6
mov rax, qword [rax]
jmp 0x1400226c1
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
mov r9d, 2
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
xor edx, edx
add rax, r8
mov rcx, r14
mov r8b, 0xff
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x1400227ca
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x1400227ca
mov esi, dword [r10 + 0x20]
dec r9d
mov r11d, 0x811c9dc5
lea rcx, [r8 + r9*4]
mov edx, dword [rcx + rsi]
add rdx, r8
mov cl, byte [rdx]
add rdx, r13
test cl, cl
je 0x1400227c5
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
add rdx, r13
test cl, cl
jne 0x1400227a6
cmp r11d, 0xc98b9e00
je 0x1400227cf
test r9d, r9d
jne 0x14002278a
mov rax, qword [rax]
jmp 0x140022765
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
mov edx, 5
add rax, r8
mov rcx, r14
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x140022868
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x140022868
mov esi, dword [r10 + 0x20]
dec r9d
mov r11d, 0x811c9dc5
lea rcx, [r8 + r9*4]
mov edx, dword [rcx + rsi]
add rdx, r8
mov cl, byte [rdx]
add rdx, r13
test cl, cl
je 0x140022863
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
add rdx, r13
test cl, cl
jne 0x140022844
cmp r11d, 0x8bc7bca8
je 0x14002286d
test r9d, r9d
jne 0x140022828
mov rax, qword [rax]
jmp 0x140022803
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
mov rcx, r14
add rax, r8
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x140022902
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x140022902
mov esi, dword [r10 + 0x20]
dec r9d
mov r11d, 0x811c9dc5
lea rcx, [rsi + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov cl, byte [rdx]
add rdx, r13
test cl, cl
je 0x1400228fd
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
add rdx, r13
test cl, cl
jne 0x1400228de
cmp r11d, 0xc399d265
je 0x140022907
test r9d, r9d
jne 0x1400228c1
mov rax, qword [rax]
jmp 0x14002289c
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
mov rcx, r14
add rax, r8
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x14002299c
mov r10d, dword [r9 + 0x18]
test r10d, r10d
je 0x14002299c
mov esi, dword [r9 + 0x20]
dec r10d
mov r11d, 0x811c9dc5
lea rcx, [rsi + r10*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov cl, byte [rdx]
add rdx, r13
test cl, cl
je 0x140022997
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
add rdx, r13
test cl, cl
jne 0x140022978
cmp r11d, 0x80b1f8e6
je 0x1400229a1
test r10d, r10d
jne 0x14002295b
mov rax, qword [rax]
jmp 0x140022936
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + r10*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
mov rcx, r14
add rax, r8
call rax
jmp 0x140022b8d
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
lea rcx, [rbp + 0xc8]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140022a01
lea rcx, [rbp + 0xc8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0xc8]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x140022b8d
cmp qword [0x1400d2230], r12
jne 0x140022a18
cmp qword [0x1400d2240], r12
je 0x140022a18
call fcn.14001cf18
mov rcx, qword [0x1400d2250]
lea rdx, [rbp + 0x50]
mov rbx, qword [0x1400b0740]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp + 0x58]
lea rcx, [rbp + 0xb0]
sub eax, dword [rbp + 0x50]
movd xmm1, eax
mov eax, dword [rbp + 0x5c]
sub eax, dword [rbp + 0x54]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 8], xmm1
movss dword [rbx + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp + 0xb0]
xorps xmm1, xmm1
sub rax, qword [0x1400d2258]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x1400d2260]
mov ecx, reloc.WS2_32.dll_recvfrom
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x10], xmm1
mov rax, qword [rbp + 0xb0]
mov qword [0x1400d2258], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_recv
and al, r13b
mov byte [rbx + 0x11d], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_select
and al, r13b
mov byte [rbx + 0x11e], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, r13b
mov byte [rbx + 0x120], r12b
mov byte [rbx + 0x11f], al
cmp byte [rbx + 0x11c], r12b
je 0x140022af7
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
call fcn.140003978
call fcn.140020b50
mov rcx, qword [0x1400d2268]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400d2268]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400d2268]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400d2268]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140022b70
call fcn.140005508
mov rcx, qword [0x1400d2268]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400d2268]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp dword [rbp + 0xd0], 0x12
jne 0x1400229c4
call fcn.14001d0c0
call fcn.1400044f8
mov rcx, qword [0x1400d2268]
mov qword [0x1400d2240], r12
mov qword [0x1400d2250], r12
test rcx, rcx
je 0x140022bc4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
xor eax, eax
mov dword [rsp + 0x6c], 0x4d5d602f
mov byte [rsp + 0x72], al
mov cl, 0x2f
mov word [rsp + 0x70], 0x5b46
xor byte [rsp + rax + 0x6d], cl
add rax, r13
cmp rax, 5
jae 0x140022bf7
mov cl, byte [rsp + 0x6c]
jmp 0x140022be4
mov byte [rsp + 0x72], r12b
lea rcx, [rsp + 0x6d]
mov rdx, r15
call qword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
mov rcx, qword [rbp + 0xf8]
xor rcx, rsp
call fcn.140085070
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret