Function at 0x140022ebc
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 [0x1400b2700]
xor rax, rsp
mov qword [rbp + 0xf8], rax
mov al, 0x26
mov byte [rsp + 0x60], reloc.WS2_32.dll_recvfrom
xor al, 0x11
lea rdx, [0x14009df86]
mov r15, rcx
mov byte [rsp + 0x61], al
xor r13d, r13d
lea rcx, [rbp - 0x10]
mov byte [rsp + 0x62], r13b
call fcn.140023d2c
lea rdx, [0x1400a2848]
mov rbx, rax
lea rcx, [rbp + 0x10]
call fcn.140023d2c
movdqa xmm0, xmmword [0x1400a3290]
mov rdi, rax
movdqa xmm1, xmmword [0x1400a32d0]
mov ecx, r13d
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x38], 0x54
movdqu xmmword [rbp - 0x48], xmm1
mov al, byte [rbp - 0x58]
xor byte [rbp + rcx - 0x57], al
inc rcx
cmp rcx, 0x20
jb 0x140022f54
lea rdx, [rbp - 0x57]
mov byte [rbp - 0x37], r13b
lea rcx, [rbp + 0x30]
call fcn.140023d2c
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], r13b
jne 0x140022f90
cmp qword [rax + 0x18], 0x10
mov r8, qword [rax + 0x10]
jb 0x140022fa7
mov rax, qword [rax]
cmp r8, rcx
jne 0x140022fc0
lea rdx, [rsp + 0x61]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
mov bl, r13b
test eax, eax
je 0x140022fc2
mov bl, 1
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140023000
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022ffb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022ffb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140086b5c
test bl, bl
je 0x140023009
call fcn.140020654
mov ebx, 0x50
lea rcx, [rbp + 0x60]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140022ddc]
mov dword [rbp + 0x60], ebx
mov qword [rbp + 0x68], rax
mov cl, 4
xor eax, eax
mov qword [rbp + 0x78], r15
mov byte [rsp + 0x7a], al
mov r12b, WSAGetLastError
mov dword [rsp + 0x74], 0x66764b04
mov word [rsp + 0x78], 0x706d
xor byte [rsp + rax + 0x75], cl
inc rax
cmp rax, 5
jae 0x14002305b
mov cl, byte [rsp + 0x74]
jmp 0x140023048
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 0x1400230fd
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x1400230fd
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]
inc rdx
test cl, cl
je 0x1400230f8
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1400230d9
cmp r11d, 0xeca33424
je 0x140023102
test r9d, r9d
jne 0x1400230bd
mov rax, qword [rax]
jmp 0x140023098
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 0x140023216
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 0x1400231a1
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x1400231a1
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]
inc rcx
test al, al
je 0x14002319d
movsx eax, al
xor eax, r11d
imul r11d, eax, 0x1000193
mov al, byte [rcx]
inc rcx
test al, al
jne 0x14002317e
cmp r11d, 0x23a979e4
je 0x1400231fb
test edx, edx
jne 0x140023162
mov rax, qword [r10]
mov r10, rax
cmp rax, rbx
jne 0x14002313e
mov r10, r13
movdqa xmm0, xmmword [0x1400a3300]
mov rcx, r13
movdqa xmm1, xmmword [0x1400a2d60]
movdqu xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x60], 0x2f2862
movdqu xmmword [rbp - 0x70], xmm1
mov al, byte [rbp - 0x80]
xor byte [rbp + rcx - 0x7f], al
inc rcx
cmp rcx, 0x22
jb 0x1400231d3
xor r9d, r9d
mov byte [rbp - 0x5d], r13b
xor r8d, r8d
lea rdx, [rbp - 0x7f]
xor ecx, ecx
call r10
jmp 0x1400238f8
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 0x1400231af
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]
cdq
mov dword [rsp + 0x64], 0x65754807
sub eax, edx
mov word [rsp + 0x68], 0x736e
sar eax, 1
lea r8d, [rax - 0x96]
mov eax, dword [rbp + 0xc4]
cdq
sub eax, edx
mov dl, 7
sar eax, 1
sub eax, 0x4b
xor ecx, ecx
mov byte [rsp + 0x6a], cl
xor byte [rsp + rcx + 0x65], dl
inc rcx
cmp rcx, 5
jae 0x140023276
mov dl, byte [rsp + 0x64]
jmp 0x140023263
mov rdx, qword [rbp + 0xa0]
mov r9d, 0x80000000
mov qword [rsp + 0x58], r13
xor ecx, ecx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
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], r13b
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov r14, rax
test rax, rax
jne 0x1400232d3
lea eax, [r14 + 2]
jmp 0x1400238fa
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rsi, rax
test rax, rax
jne 0x1400232f6
mov rcx, qword [rbp + 0xa0]
mov rdx, r15
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov edi, 0x40
lea rbx, [0x1400d43d0]
mov r8d, edi
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea edx, [rdi - 0x3f]
mov dword [0x1400d43d8], r13d
mov dword [0x1400d43f8], edx
lea rcx, [0x1400d42b8]
mov qword [rsp + 0x30], rcx
mov r8d, edx
mov dword [0x1400d43e8], edx
mov r9, r14
mov dword [0x1400d43fc], edx
mov rcx, rsi
mov dword [0x1400d440c], edx
xor edx, edx
mov dword [0x1400d4400], 0x50
mov rax, qword [rsi]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edi
call qword [rax + pe_nt_image_headers64]
test eax, eax
jns 0x14002337d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0xa0]
jmp 0x1400238ef
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 0x140023412
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x140023412
mov edi, dword [r10 + 0x20]
dec r9d
mov r11d, 0x811c9dc5
lea rcx, [r8 + r9*4]
mov edx, dword [rcx + rdi]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x14002340d
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1400233ee
cmp r11d, 0x1de05d54
je 0x140023417
test r9d, r9d
jne 0x1400233d2
mov rax, qword [rax]
jmp 0x1400233ad
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 0x1400234b6
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x1400234b6
mov edi, dword [r10 + 0x20]
dec r9d
mov r11d, 0x811c9dc5
lea rcx, [r8 + r9*4]
mov edx, dword [rcx + rdi]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x1400234b1
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140023492
cmp r11d, 0xc98b9e00
je 0x1400234bb
test r9d, r9d
jne 0x140023476
mov rax, qword [rax]
jmp 0x140023451
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 0x140023554
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x140023554
mov edi, dword [r10 + 0x20]
dec r9d
mov r11d, 0x811c9dc5
lea rcx, [r8 + r9*4]
mov edx, dword [rcx + rdi]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x14002354f
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140023530
cmp r11d, 0x8bc7bca8
je 0x140023559
test r9d, r9d
jne 0x140023514
mov rax, qword [rax]
jmp 0x1400234ef
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 0x1400235ee
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x1400235ee
mov edi, dword [r10 + 0x20]
dec r9d
mov r11d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x1400235e9
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1400235ca
cmp r11d, 0xc399d265
je 0x1400235f3
test r9d, r9d
jne 0x1400235ad
mov rax, qword [rax]
jmp 0x140023588
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 0x140023688
mov r10d, dword [r9 + 0x18]
test r10d, r10d
je 0x140023688
mov edi, dword [r9 + 0x20]
dec r10d
mov r11d, 0x811c9dc5
lea rcx, [rdi + r10*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x140023683
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140023664
cmp r11d, 0x80b1f8e6
je 0x14002368d
test r10d, r10d
jne 0x140023647
mov rax, qword [rax]
jmp 0x140023622
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 0x140023879
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp + 0xc8]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1400236f0
lea rcx, [rbp + 0xc8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0xc8]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x140023879
cmp qword [0x1400d4280], r13
jne 0x140023707
cmp qword [0x1400d4290], r13
je 0x140023707
call fcn.14001cf18
mov rcx, qword [0x1400d42a0]
lea rdx, [rbp + 0x50]
mov rbx, qword [str.P_v_r_]
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 [0x1400d42a8]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x1400d42b0]
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 [0x1400d42a8], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_recv
and al, 1
mov byte [rbx + 0x11d], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_select
and al, 1
mov byte [rbx + 0x11e], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x120], r13b
mov byte [rbx + 0x11f], al
cmp byte [rbx + 0x11c], r13b
je 0x1400237e3
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
call fcn.140003978
call fcn.14002184c
mov rcx, qword [0x1400d42b8]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400d42b8]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400d42b8]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400d42b8]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14002385c
call fcn.140005508
mov rcx, qword [0x1400d42b8]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400d42b8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp dword [rbp + 0xd0], 0x12
jne 0x1400236b0
call fcn.14001d0c0
call fcn.1400044f8
mov rcx, qword [0x1400d42b8]
mov qword [0x1400d4290], r13
mov qword [0x1400d42a0], r13
test rcx, rcx
je 0x1400238b0
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, r13
mov byte [rsp + 0x6c], r12b
mov dword [rsp + 0x6d], 0x40f1f22
mov word [rsp + 0x71], Ordinal_27
xor byte [rsp + rax + 0x6d], r12b
inc rax
cmp rax, 5
jae 0x1400238e5
mov r12b, byte [rsp + 0x6c]
jmp 0x1400238d0
mov byte [rsp + 0x72], r13b
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.140086430
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