Function at 0x140004650
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, 0xc8
mov rax, qword [0x14023eb80]
xor rax, rsp
mov qword [rbp - 9], rax
mov rax, rdx
mov r12, 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 0x140005088
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
xor ecx, ecx
mov r9d, 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 r15, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400046fb
cmp dword [r15], 0x905a4d
je 0x14000470c
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
je 0x140005088
mov rcx, r15
mov qword [rsp + 0xc0], r14
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r14, rax
test rax, rax
jne 0x1400047cd
movabs rax, 0x22fcd04dba8cad54
movabs rcx, 0x438abe249ab6c824
mov qword [rbp - 0x59], rax
movabs rax, 0xa72791543d7ea148
mov qword [rbp - 0x51], rax
movabs rax, 0x67191856eb0aa941
movdqa xmm0, xmmword [rbp - 0x59]
mov qword [rbp - 0x29], rcx
movabs rcx, 0xcf07f4241d1ac824
mov qword [rbp - 0x49], rax
movabs rax, 0x8ca5c82495d2c824
mov qword [rbp - 0x21], rcx
movabs rcx, 0x671912248e6ec824
xorps xmm0, xmmword [rbp - 0x29]
mov qword [rbp - 0x41], rax
movdqa xmm1, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
lea rcx, [rbp - 0x59]
mov qword [rbp - 0x11], rax
xorps xmm1, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x49], xmm1
movdqa xmmword [rbp - 0x59], xmm0
call fcn.140001870
xor al, al
jmp 0x140004d10
cmp byte [0x140080655], sil
movsd xmm0, qword [0x140080648]
movzx eax, word [0x140080654]
mov edx, dword [0x140080650]
mov edi, dword [reloc.WS2_32.dll_accept]
mov qword [rsp + 0x110], r13
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm7
movdqa xmm7, xmmword [0x140080840]
movsd qword [rbp - 0x59], xmm0
mov dword [rbp - 0x51], edx
mov word [rbp - 0x4d], ax
je 0x1400049af
mov ecx, esi
cmp edi, 2
jl 0x14000496e
movdqa xmm2, xmmword [0x1400805f0]
mov ecx, ntohs
movdqa xmm4, xmmword [0x140080860]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400807f0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
movdqa xmm5, xmmword [str.::::]
movdqa xmm6, xmmword [0x140080850]
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, xmm5
psubd xmm2, xmm0
movd xmm0, dword [0x140080648]
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
xorps xmm2, xmm0
movd dword [rbp - 0x59], xmm2
movdqa xmm2, xmmword [0x1400807e0]
movdqa xmm1, xmm2
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
movdqa xmm1, xmm3
pmulld xmm0, xmm5
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rbp - 0x55]
andps xmm2, xmm7
packuswb xmm2, xmm2
pmuldq xmm1, xmm4
packuswb xmm2, xmm2
paddb xmm2, xmm6
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rbp - 0x55], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
movd xmm0, edx
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm6
xorps xmm3, xmm0
movd dword [rbp - 0x51], xmm3
mov eax, ecx
lea r8, [rbp - 0x59]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
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, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0xe
jl 0x140004980
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x59]
call fcn.1400022f0
mov dword [rbp - 0x31], esi
xor edx, edx
mov rcx, r12
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rbp - 0x31]
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 - 0x31]
test ebx, ebx
je 0x1400049c2
movzx eax, byte [0x14008066c]
mov ecx, esi
mov edx, dword [0x140080668]
mov dword [rbp - 0x49], edx
mov byte [rbp - 0x45], al
movups xmm6, xmmword [0x140080658]
movups xmmword [rbp - 0x59], xmm6
cmp edi, 2
jl 0x140004c2e
movdqa xmm4, xmmword [0x140080860]
movdqa xmm3, xmmword [0x1400805f0]
movdqa xmm2, xmmword [0x1400807e0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
movdqa xmm5, xmmword [str.::::]
mov ecx, dword [0x140080850]
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd eax, xmm6
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmulld xmm0, xmm5
psubd xmm3, xmm0
pmuldq xmm1, xmm4
andps xmm3, xmm7
movd xmm0, ecx
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
movd xmm0, eax
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movd dword [rbp - 0x59], xmm3
movdqa xmm3, xmmword [0x1400807f0]
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x55]
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
xorps xmm2, xmm1
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd dword [rbp - 0x55], xmm2
movdqa xmm2, xmmword [0x140080800]
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x51]
pmulld xmm0, xmm5
psubd xmm3, xmm0
movd xmm0, ecx
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
movdqa xmm0, xmm2
xorps xmm3, xmm1
punpckhdq xmm0, xmm2
movdqa xmm1, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movd dword [rbp - 0x51], xmm3
shufps xmm1, xmm0, 0xdd
movdqa xmm3, xmmword [0x140080810]
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x4d]
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
xorps xmm2, xmm1
movdqa xmm1, xmm3
pmuldq xmm0, xmm4
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd dword [rbp - 0x4d], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, edx
pmulld xmm0, xmm5
psubd xmm3, xmm0
movd xmm0, ecx
andps xmm3, xmm7
mov ecx, reloc.WS2_32.dll_sendto
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
xorps xmm3, xmm1
movd dword [rbp - 0x49], xmm3
movaps xmm7, xmmword [rsp + 0xa0]
lea r8, [rbp - 0x59]
movaps xmm6, xmmword [rsp + 0xb0]
mov eax, ecx
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
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, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0x15
jl 0x140004c50
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x59]
call fcn.1400022f0
nop
mov ecx, reloc.WS2_32.dll_WSACleanup
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140004c90
test r13d, r13d
je 0x140004ff8
call fcn.140001f60
mov edx, ebx
mov rcx, rax
call fcn.140001b20
call fcn.140001f60
mov edx, dword [r14 + 0x50]
mov r8d, 0x40
mov rcx, rax
call fcn.140001a80
mov r8, r14
mov rdx, r15
mov rcx, rax
mov r12, rax
call fcn.1400060c0
test eax, eax
je 0x140004cf6
mov r8, r14
mov rdx, r15
mov ecx, r13d
call fcn.140006260
test eax, eax
jne 0x140004d34
call fcn.140001f60
mov rdx, r12
mov rcx, rax
call fcn.140001b30
xor al, al
mov r13, qword [rsp + 0x110]
mov r14, qword [rsp + 0xc0]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140079d20
add rsp, 0xc8
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 0x140004d7b
add rbx, r14
nop word [rax + rax]
call fcn.140001f60
mov r8d, dword [rbx]
mov rcx, rax
mov edx, dword [rbx - 8]
add r8, r15
mov r9d, dword [rbx - 4]
add rdx, r12
call fcn.140001fd0
inc di
lea rbx, [rbx + 0x28]
cmp di, word [r14 + 6]
jb 0x140004d50
movabs rax, 0x43e6be409ac2c84a
movabs rcx, 0x438abe249ab6c824
mov qword [rbp - 0x59], rax
movabs rax, 0xcf6bf4401d34c848
mov qword [rbp - 0x51], rax
movabs rax, 0x671912248e6ec848
movdqa xmm0, xmmword [rbp - 0x59]
mov qword [rbp - 0x29], rcx
movabs rcx, 0xcf07f4241d1ac824
mov qword [rbp - 0x49], rax
movabs rax, 0x8ca5c82495d2c824
mov qword [rbp - 0x21], rcx
movabs rcx, 0x671912248e6ec824
xorps xmm0, xmmword [rbp - 0x29]
mov qword [rbp - 0x41], rax
movdqa xmm1, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
lea rcx, [rbp - 0x59]
mov qword [rbp - 0x11], rax
xorps xmm1, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x49], xmm1
movdqa xmmword [rbp - 0x59], xmm0
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
call fcn.140001f60
mov edx, 0x1000
mov r8d, 0x40
mov rcx, rax
call fcn.140001a80
mov edx, reloc.WS2_32.dll_WSACleanup
mov qword [rbp - 0x31], rax
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movups xmm0, xmmword [0x1400e1540]
mov rdx, rax
mov qword [rbp - 0x39], rax
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400e1550]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1400e1560]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [0x1400e1570]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [str.D__H]
movups xmmword [rax + 0x40], xmm0
movsd xmm1, qword [0x1400e1590]
movsd qword [rax + 0x50], xmm1
mov ecx, dword [0x1400e1598]
mov dword [rax + 0x58], ecx
lea rcx, [rdi + 0x5c]
mov eax, dword [reloc.WS2_32.dll_getsockname]
lea rdi, [rdx + 0x5c]
mov qword [rbp - 0x29], rcx
mov qword [rax + rdx], rcx
mov qword [rdi + 0x10], r12
mov eax, dword [r14 + 0x28]
add rax, r12
mov qword [rdi + 8], rax
call fcn.140001f60
mov r8, qword [rbp - 0x39]
mov r9d, reloc.WS2_32.dll_WSACleanup
mov rdx, qword [rbp - 0x31]
mov rcx, rax
call fcn.140001fd0
mov rdx, qword [rbp - 0x31]
mov r9d, r13d
mov r8, rbx
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
cmp dword [rdi], 2
mov qword [rbp - 0x59], rax
je 0x140004f3e
mov rbx, qword [rbp - 0x29]
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, r13d
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call fcn.140001f60
mov r9d, Ordinal_27
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140001eb0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rdi], 2
jne 0x140004f00
mov rax, qword [rbp - 0x59]
mov rcx, rax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call fcn.140001f60
mov rdx, qword [rbp - 0x31]
mov rcx, rax
call fcn.140001b30
mov rcx, qword [rbp - 0x39]
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 0x140004fe0
add rdi, r14
nop dword [rax]
mov eax, dword [rdi]
test eax, eax
je 0x140004fd2
test dword [rdi + 0x14], 0x2000000
je 0x140004fd2
mov edx, eax
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
call fcn.140001f60
mov edx, dword [rdi - 4]
mov r8, rbx
mov r9d, dword [rdi]
add rdx, r12
mov rcx, rax
call fcn.140001fd0
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 0x140004f80
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, 1
jmp 0x140004d08
movabs rax, 0x63f9cd41f9d9ba54
movabs rcx, 0x438abe249ab6c824
mov qword [rbp - 0x59], rax
movabs rax, 0xa1729b423d6ea74a
mov qword [rbp - 0x51], rax
movabs rax, 0x671912248e64e940
movdqa xmm0, xmmword [rbp - 0x59]
mov qword [rbp - 0x29], rcx
movabs rcx, 0xcf07f4241d1ac824
mov qword [rbp - 0x49], rax
movabs rax, 0x8ca5c82495d2c824
mov qword [rbp - 0x21], rcx
movabs rcx, 0x671912248e6ec824
xorps xmm0, xmmword [rbp - 0x29]
mov qword [rbp - 0x41], rax
movdqa xmm1, xmmword [rbp - 0x49]
mov qword [rbp - 0x19], rcx
lea rcx, [rbp - 0x59]
mov qword [rbp - 0x11], rax
xorps xmm1, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x49], xmm1
movdqa xmmword [rbp - 0x59], xmm0
call fcn.140001870
jmp 0x140004d06
movabs rax, 0x63eed748fbc0a64d
movabs rcx, 0x438abe249ab6c824
mov qword [rbp - 0x59], rax
movabs rax, 0xcf07f4241776a440
mov qword [rbp - 0x29], rcx
movabs rcx, 0xcf07f4241d1ac824
mov qword [rbp - 0x51], rax
movdqa xmm0, xmmword [rbp - 0x59]
mov qword [rbp - 0x21], rcx
lea rcx, [rbp - 0x59]
xorps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x59], xmm0
call fcn.140001870
xor al, al
jmp 0x140004d18