Function at 0x140088300
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140162010]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r12, r8
mov r15, rdx
mov rsi, rcx
xor r13d, r13d
mov qword [rbp + 0x80], r13
mov qword [rbp + 0x78], r13
xor r9d, r9d
lea r8d, [r13 + 1]
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0x80]
call fcn.140087030
test al, al
jne 0x140088369
xor bl, bl
jmp 0x1400888fd
mov qword [rbp + 0x70], r13
mov qword [rbp + 0x68], r13
mov r9d, 0x1000
cmp dword [rsi + 0x70], r9d
cmova r9d, dword [rsi + 0x70]
xor r8d, r8d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x70]
call fcn.140087030
test al, al
jne 0x14008839b
xor bl, bl
jmp 0x1400888dd
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
mov dword [rbp - 0x20], 0x68
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x1c], 0x100
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x90], r13
mov edx, dword [rbp - 0x20]
cmp edx, 0x68
jne 0x140088952
xor edx, edx
mov r8d, 0xb8
lea rcx, [rbp + 0xa0]
call fcn.1400d41f0
lea r8, [rbp - 0x20]
mov rdx, rsi
lea rcx, [rbp + 0xa0]
call fcn.140087bd0
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rax
xorps xmm1, xmm1
movups xmmword [rbp + 0x50], xmm1
mov qword [rbp + 0x60], rax
lea rdi, [rsi + 0x20]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14008844d
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
lea r14, [rcx + rax*2]
jb 0x14008845a
mov rdi, qword [rdi]
movdqu xmmword [rbp + 0x50], xmm0
mov rax, r13
mov qword [rbp + 0x60], rax
sub r14, rdi
mov rbx, r14
sar rbx, 1
cmp r14, 2
jb 0x1400884c0
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x14008898f
lfence
add rbx, rbx
mov rcx, rbx
call fcn.14000e8a0
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
add rbx, rax
mov qword [rbp + 0x60], rbx
lfence
mov r8, r14
mov rdx, rdi
mov rcx, rax
call fcn.1400d44b0
mov qword [rbp + 0x58], rbx
mov rax, qword [rbp + 0x60]
jmp 0x1400884c4
mov rbx, qword [rbp + 0x58]
mov word [rsp + 0x60], r13w
cmp rbx, rax
je 0x1400884da
mov word [rbx], r13w
add qword [rbp + 0x58], 2
jmp 0x1400884eb
lea r8, [rsp + 0x60]
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.140088c70
cmp qword [rsi + 0x10], 0
jne 0x1400884f7
mov r10, r13
jmp 0x140088504
mov r10, rsi
cmp qword [rsi + 0x18], 8
jb 0x140088504
mov r10, qword [rsi]
cmp qword [rsi + 0x50], 0
jne 0x140088510
mov rcx, r13
jmp 0x14008851e
lea rcx, [rsi + 0x40]
cmp qword [rcx + 0x18], 8
jb 0x14008851e
mov rcx, qword [rcx]
mov r11, qword [rsi + 0x90]
mov edx, dword [rsi + 0x80]
lea rax, [rbp - 0x38]
xor r9d, r9d
test r11, r11
je 0x140088577
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x150]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r13
mov eax, dword [rbp + 0x140]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r13
mov r8, qword [rbp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x1400885b0
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x150]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov eax, dword [rbp + 0x140]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
xor r8d, r8d
mov rdx, qword [rbp + 0x50]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rbx, qword [rbp - 0x30]
mov qword [rbp + 0x98], rbx
mov rdi, qword [rbp - 0x38]
mov qword [rbp + 0x90], rdi
test eax, eax
jne 0x140088722
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x160]
call fcn.1400d41f0
call fcn.140089150
mov qword [rbp + 0x160], rax
mov dword [rbp + 0x168], 2
lea rcx, [rbp + 0x170]
call fcn.140018320
nop
mov rcx, qword [rbp + 0x160]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140032886.0]
cmp dword [rbp + 0x168], eax
setl byte [rbp + 0x268]
jl 0x14008865c
lea rdx, str.CreateProcess:
lea rcx, [rbp + 0x160]
call fcn.14001a0c0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rdx, [rsp + 0x64]
mov rcx, rsi
call fcn.14002cee0
mov byte [rbp + 0x268], 1
lea rcx, [rbp + 0x160]
call fcn.140014330
nop
test rbx, rbx
je 0x140088678
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x1400886c5
mov rax, qword [rbp + 0x60]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400886b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140088995
call fcn.1400ada10
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r13
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x1400886d7
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x14008889a
mov rdx, qword [rbp + 0xc0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140088716
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008894c
call fcn.1400ada10
xor bl, bl
jmp 0x1400888ce
test rbx, rbx
je 0x140088731
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14008877e
mov rax, qword [rbp + 0x60]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008876d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140088995
call fcn.1400ada10
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r13
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x140088790
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x1400887d0
mov rdx, qword [rbp + 0xc0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400887cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008894c
call fcn.1400ada10
lea rdx, [rsi + 0x60]
cmp qword [rdx + 0x18], 0x10
jb 0x1400887de
mov rdx, qword [rdx]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x88]
mov r8d, dword [rsi + 0x70]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14008889e
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x270]
call fcn.1400d41f0
call fcn.140089150
mov qword [rbp + 0x270], rax
mov dword [rbp + 0x278], 1
lea rcx, [rbp + 0x280]
call fcn.140018320
nop
mov rcx, qword [rbp + 0x270]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140032886.0]
cmp dword [rbp + 0x278], eax
setl byte [rbp + 0x378]
jl 0x14008888e
lea rdx, str.WriteFile_stdin_:
lea rcx, [rbp + 0x270]
call fcn.140018e40
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.14002cee0
mov byte [rbp + 0x378], 1
lea rcx, [rbp + 0x270]
call fcn.140014330
xor bl, bl
jmp 0x1400888ce
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x1400888ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x68], r13
mov qword [rsp + 0x20], r12
mov r9, r15
mov r8, qword [rbp + 0x80]
mov rdx, rsi
mov rcx, rdi
call fcn.140087410
movzx ebx, al
test rdi, rdi
je 0x1400888dd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x1400888ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x1400888fd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x14008890d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x14008891f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400ad9f0
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400e39e0
nop
lea rcx, [rbp - 0x78]
call fcn.140088b60
nop
mov r8, rax
lea rdx, str.Unexpected_value_of_si.cb:
lea rcx, [rbp - 0x58]
call fcn.140018d70
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140061e40
lea rdx, [0x140160030]
lea rcx, [rsp + 0x70]
call fcn.1400d4390
nop
call fcn.140011ea0
int3
call fcn.1400e39e0
int3