Function at 0x1400045f0
Capabilities:
Access pe header
Allocate or change rwx memory
Encode data using xor
Get file size
Log keystrokes via application hook
Log keystrokes via polling
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xb8
mov rax, qword [0x14023db80]
xor rax, rsp
mov qword [rbp + 7], rax
mov rax, rdx
mov r15, rcx
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140004ef8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
xor ecx, ecx
lea r9d, [rsi + 4]
mov ebx, eax
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov rdx, rax
mov r8d, ebx
mov rcx, rdi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000469a
cmp dword [r12], 0x905a4d
je 0x1400046ab
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x140004ef8
mov rcx, r12
mov qword [rsp + 0xb0], r14
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r14, rax
test rax, rax
jne 0x14000476c
movabs rax, 0xe9d3159d575f0c84
movabs rcx, 0x88a57bf4776569f4
mov qword [rbp - 0x49], rax
movabs rax, 0xf860908452450098
mov qword [rbp - 0x41], rax
movabs rax, 0xca90258692390891
movdqa xmm0, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
movabs rcx, 0x9040f5f4722169f4
mov qword [rbp - 0x39], rax
movabs rax, 0x1b9109f4e45969f4
mov qword [rbp - 0x11], rcx
movabs rcx, 0xca902ff4f75d69f4
xorps xmm0, xmmword [rbp - 0x19]
mov qword [rbp - 0x31], rax
movdqa xmm1, xmmword [rbp - 0x39]
mov qword [rbp - 9], rcx
lea rcx, [rbp - 0x49]
mov qword [rbp - 1], rax
xorps xmm1, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmmword [rbp - 0x49], xmm0
call fcn.140001930
xor al, al
jmp 0x140004b90
cmp byte [0x14007f62d], sil
mov eax, dword [0x14007f628]
movsd xmm0, qword [0x14007f620]
mov edi, dword [reloc.WS2_32.dll_accept]
mov dword [rbp - 0x41], eax
movzx eax, word [0x14007f62c]
mov qword [rsp + 0x100], r13
mov word [rbp - 0x3d], ax
movaps xmmword [rsp + 0xa0], xmm6
movsd qword [rbp - 0x49], xmm0
je 0x1400048ff
mov ecx, esi
cmp edi, 2
jl 0x1400048bb
movdqa xmm2, xmmword [0x14007f7b0]
mov ecx, 8
movdqa xmm3, xmmword [0x14007f7c0]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x14007f800]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14007f7d0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [0x14007f620]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14007f7e0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.3333333333333333]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp - 0x49], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14007f7d0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp - 0x45]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14007f7e0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.3333333333333333]
xorps xmm2, xmm0
movd dword [rbp - 0x45], xmm2
movsxd rax, ecx
lea r8, [rbp - 0x49]
add r8, rax
nop word [rax + rax]
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
inc ecx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ecx, 0xe
jl 0x1400048d0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x49]
call fcn.1400022b0
mov dword [rbp - 0x21], esi
xor edx, edx
mov rcx, r15
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, reloc.WS2_32.dll_sendto
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [rbp - 0x21]
test ebx, ebx
je 0x140004912
mov ecx, dword [0x14007f640]
movzx eax, byte [0x14007f644]
mov dword [rbp - 9], ecx
mov ecx, esi
mov byte [rbp - 5], al
movups xmm0, xmmword [0x14007f630]
movups xmmword [rbp - 0x19], xmm0
cmp edi, 2
jl 0x140004aac
movdqa xmm0, xmmword [str.3333333333333333]
lea rdx, [rbp - 0x15]
movdqa xmm5, xmmword [0x14007f7b0]
movdqa xmm4, xmmword [0x14007f800]
movdqa xmm6, xmmword [0x14007f7d0]
movdqa xmmword [rbp - 0x49], xmm0
mov r8d, dword [rbp - 0x49]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14007f7e0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14007f7e0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1400049a0
cmp ecx, 0x15
jge 0x140004aef
movsxd rax, ecx
lea r8, [rbp - 0x19]
add r8, rax
nop word [rax + rax]
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
inc ecx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ecx, 0x15
jl 0x140004ac0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x19]
call fcn.1400022b0
movaps xmm6, xmmword [rsp + 0xa0]
nop word [rax + rax]
mov ecx, reloc.WS2_32.dll_WSACleanup
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140004b10
test r13d, r13d
je 0x140004e68
call fcn.140001f20
mov edx, ebx
mov rcx, rax
call fcn.140001be0
call fcn.140001f20
mov edx, dword [r14 + 0x50]
mov r8d, 0x40
mov rcx, rax
call fcn.140001b40
mov r8, r14
mov rdx, r12
mov rcx, rax
mov r15, rax
call fcn.140005f30
test eax, eax
je 0x140004b76
mov r8, r14
mov rdx, r12
mov ecx, r13d
call fcn.1400060c0
test eax, eax
jne 0x140004bb4
call fcn.140001f20
mov rdx, r15
mov rcx, rax
call fcn.140001bf0
xor al, al
mov r13, qword [rsp + 0x100]
mov r14, qword [rsp + 0xb0]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400798e0
add rsp, 0xb8
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx ebx, word [r14 + 0x14]
movzx edi, si
add rbx, 0x2c
cmp si, word [r14 + 6]
jae 0x140004bfb
add rbx, r14
nop word [rax + rax]
call fcn.140001f20
mov r8d, dword [rbx]
mov rcx, rax
mov edx, dword [rbx - 8]
add r8, r12
mov r9d, dword [rbx - 4]
add rdx, r15
call fcn.140001f90
inc di
lea rbx, [rbx + 0x28]
cmp di, word [r14 + 6]
jb 0x140004bd0
movabs rax, 0x88c97b907711699a
movabs rcx, 0x88a57bf4776569f4
mov qword [rbp - 0x49], rax
movabs rax, 0x902cf590720f6998
mov qword [rbp - 0x41], rax
movabs rax, 0xca902ff4f75d6998
movdqa xmm0, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
movabs rcx, 0x9040f5f4722169f4
mov qword [rbp - 0x39], rax
movabs rax, 0x1b9109f4e45969f4
mov qword [rbp - 0x11], rcx
movabs rcx, 0xca902ff4f75d69f4
xorps xmm0, xmmword [rbp - 0x19]
mov qword [rbp - 0x31], rax
movdqa xmm1, xmmword [rbp - 0x39]
mov qword [rbp - 9], rcx
lea rcx, [rbp - 0x49]
mov qword [rbp - 1], rax
xorps xmm1, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmmword [rbp - 0x49], xmm0
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
call fcn.140001f20
mov edx, 0x1000
mov r8d, 0x40
mov rcx, rax
call fcn.140001b40
mov edx, reloc.WS2_32.dll_WSACleanup
mov qword [rbp - 0x21], rax
xor ecx, ecx
mov r8d, 0x3000
mov rdi, rax
lea r9d, [rdx - 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movups xmm0, xmmword [0x1400e0540]
mov rdx, rax
mov qword [rbp - 0x29], rax
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400e0550]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1400e0560]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [0x1400e0570]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [str.D__H]
movups xmmword [rax + 0x40], xmm0
movsd xmm1, qword [0x1400e0590]
movsd qword [rax + 0x50], xmm1
mov ecx, dword [0x1400e0598]
mov dword [rax + 0x58], ecx
lea rcx, [rdi + 0x5c]
mov eax, dword [reloc.WS2_32.dll_getsockname]
lea rdi, [rdx + 0x5c]
mov qword [rbp - 0x19], rcx
mov qword [rax + rdx], rcx
mov qword [rdi + 0x10], r15
mov eax, dword [r14 + 0x28]
add rax, r15
mov qword [rdi + 8], rax
call fcn.140001f20
mov r8, qword [rbp - 0x29]
mov r9d, reloc.WS2_32.dll_WSACleanup
mov rdx, qword [rbp - 0x21]
mov rcx, rax
call fcn.140001f90
mov rdx, qword [rbp - 0x21]
mov r9d, r13d
mov r8, rbx
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
cmp dword [rdi], 2
mov qword [rbp - 0x49], rax
je 0x140004db3
mov rbx, qword [rbp - 0x19]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, r13d
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call fcn.140001f20
mov r9d, Ordinal_27
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140001e70
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rdi], 2
jne 0x140004d75
mov rax, qword [rbp - 0x49]
mov rcx, rax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call fcn.140001f20
mov rdx, qword [rbp - 0x21]
mov rcx, rax
call fcn.140001bf0
mov rcx, qword [rbp - 0x29]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
movzx edi, word [r14 + 0x14]
add rdi, 0x28
cmp si, word [r14 + 6]
jae 0x140004e50
add rdi, r14
mov eax, dword [rdi]
test eax, eax
je 0x140004e42
test dword [rdi + 0x14], 0x2000000
je 0x140004e42
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
call fcn.140001f20
mov edx, dword [rdi - 4]
mov r8, rbx
mov r9d, dword [rdi]
add rdx, r15
mov rcx, rax
call fcn.140001f90
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
inc si
add rdi, 0x28
cmp si, word [r14 + 6]
jb 0x140004df2
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, 1
jmp 0x140004b88
movabs rax, 0xa8d60891140a1b84
movabs rcx, 0x88a57bf4776569f4
mov qword [rbp - 0x49], rax
movabs rax, 0xfe359a925255069a
mov qword [rbp - 0x41], rax
movabs rax, 0xca902ff4f7574890
movdqa xmm0, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
movabs rcx, 0x9040f5f4722169f4
mov qword [rbp - 0x39], rax
movabs rax, 0x1b9109f4e45969f4
mov qword [rbp - 0x11], rcx
movabs rcx, 0xca902ff4f75d69f4
xorps xmm0, xmmword [rbp - 0x19]
mov qword [rbp - 0x31], rax
movdqa xmm1, xmmword [rbp - 0x39]
mov qword [rbp - 9], rcx
lea rcx, [rbp - 0x49]
mov qword [rbp - 1], rax
xorps xmm1, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmmword [rbp - 0x49], xmm0
call fcn.140001930
jmp 0x140004b86
movabs rax, 0xa8c112981613079d
movabs rcx, 0x88a57bf4776569f4
mov qword [rbp - 0x49], rax
movabs rax, 0x9040f5f4784d0590
mov qword [rbp - 0x19], rcx
movabs rcx, 0x9040f5f4722169f4
mov qword [rbp - 0x41], rax
movdqa xmm0, xmmword [rbp - 0x49]
mov qword [rbp - 0x11], rcx
lea rcx, [rbp - 0x49]
xorps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x49], xmm0
call fcn.140001930
xor al, al
jmp 0x140004b98