Function at 0x1400229b0
Capabilities:
Create process on windows
Encode data using xor
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x248]
sub rsp, 0x340
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14005f020]
xor rax, rsp
mov qword [rbp + 0x230], rax
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140031700
mov r8d, 0x104
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movdqa xmm0, xmmword [0x140054e40]
movdqu xmmword [rbp + 0x10], xmm0
xor edi, edi
mov word [rbp], di
lea rax, [rbp + 0x20]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x140022a30
lea rdx, [rbp + 0x20]
lea rcx, [rbp]
call fcn.14000afc0
nop
mov dword [rsp + 0x70], 0x70
mov dword [rsp + 0x74], 0x40
mov qword [rsp + 0x78], rdi
lea r8, [rsp + 0x38]
mov edx, 8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140022ad8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x30], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x34]
lea edx, [r9 + 0xe]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140022bd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea rcx, [rsp + 0x48]
cmp eax, 0x57
je 0x140022be7
call fcn.1400260a0
lea rax, str.runas
mov qword [rbp - 0x80], rax
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
mov qword [rbp - 0x78], rax
lea rax, str._install
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x60], edi
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140022bf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [rbp - 0x20], 0x94c0
mov ecx, dword [rbp - 0x20]
xor ecx, 0x2e
mov word [rbp - 0x1c], cx
mov ecx, dword [rbp - 0x20]
inc cx
xor ecx, 0x56
mov word [rbp - 0x1a], cx
mov ecx, dword [rbp - 0x20]
add cx, 2
xor ecx, 0x45
mov word [rbp - 0x18], cx
mov eax, dword [rbp - 0x20]
add ax, 3
xor eax, 0x49
mov word [rbp - 0x16], ax
xor eax, eax
mov word [rbp - 0x14], ax
movzx eax, word [rbp - 0x1c]
mov rdx, rdi
nop word [rax + rax]
movzx eax, word [rbp + rdx*2 - 0x1c]
mov ecx, dword [rbp - 0x20]
add ecx, edx
xor ecx, eax
mov word [rbp + rdx*2 - 0x1c], cx
inc rdx
cmp rdx, 4
jb 0x140022b70
mov word [rbp - 0x14], di
mov rcx, qword [0x140063e00]
test rcx, rcx
je 0x140022bcb
lea rax, [rbp - 0x1c]
nop
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x140022ba0
lea r8d, [rbx*2 + 2]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x54]
lea rdx, [rbp - 0x1c]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140022c76
lea rcx, [rsp + 0x48]
cmp dword [rsp + 0x34], 2
jmp 0x140022acd
call fcn.1400260a0
lea rax, str.open
jmp 0x140022adf
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x28]
call qword [0x1400472c0]
call fcn.140020de0
test eax, eax
jne 0x140022c71
mov eax, 0x37
mov word [rbp - 0x10], ax
mov eax, 0x5f
mov word [rbp - 0xe], ax
mov eax, 0x7d
mov word [rbp - 0xc], ax
mov eax, 0x59
mov word [rbp - 0xa], ax
mov word [rbp - 8], di
movzx eax, word [rbp - 0x10]
mov rdx, rdi
nop dword [rax]
movzx ecx, word [rbp + rdx*2 - 0x10]
sub ecx, 9
mov word [rbp + rdx*2 - 0x10], cx
inc rdx
cmp rdx, 4
jb 0x140022c50
lea rcx, [rbp - 0x10]
call fcn.14001c7d0
jmp 0x140022c76
mov edi, 1
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140022cb2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022cad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022cdc
call fcn.14002fb54
mov eax, edi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.14002fb30
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140036ad4
int3