Function at 0x140136fd0
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 [0x140293028]
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.140135590
test al, al
jne 0x140137039
xor bl, bl
jmp 0x1401375d3
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.140135590
test al, al
jne 0x14013706b
xor bl, bl
jmp 0x1401375b3
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 0x140137629
xor edx, edx
mov r8d, 0xb8
lea rcx, [rbp + 0xa0]
call fcn.1401a8d80
lea r8, [rbp - 0x20]
mov rdx, rsi
lea rcx, [rbp + 0xa0]
call fcn.140136140
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]
cmp qword [rdi + 0x18], 8
jb 0x140137127
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi]
lea r14, [rax + rcx*2]
mov rdi, rax
jmp 0x14013712f
mov rax, qword [rdi + 0x10]
lea r14, [rdi + rax*2]
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 0x140137195
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140137666
lfence
add rbx, rbx
mov rcx, rbx
call fcn.140012d70
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.1401a9040
mov qword [rbp + 0x58], rbx
mov rax, qword [rbp + 0x60]
jmp 0x140137199
mov rbx, qword [rbp + 0x58]
mov word [rsp + 0x60], r13w
cmp rbx, rax
je 0x1401371af
mov word [rbx], r13w
add qword [rbp + 0x58], 2
jmp 0x1401371c0
lea r8, [rsp + 0x60]
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.1400d66f0
cmp qword [rsi + 0x10], 0
jne 0x1401371cc
mov r10, r13
jmp 0x1401371d9
mov r10, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401371d9
mov r10, qword [rsi]
cmp qword [rsi + 0x50], 0
jne 0x1401371e5
mov rcx, r13
jmp 0x1401371f3
lea rcx, [rsi + 0x40]
cmp qword [rcx + 0x18], 8
jb 0x1401371f3
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 0x14013724c
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 0x140137285
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 0x1401373f7
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x160]
call fcn.1401a8d80
call fcn.140138af0
mov qword [rbp + 0x160], rax
mov dword [rbp + 0x168], 2
lea rcx, [rbp + 0x170]
call fcn.14000f010
nop
mov rcx, qword [rbp + 0x160]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d90b6.0]
cmp dword [rbp + 0x168], eax
setl byte [rbp + 0x268]
jl 0x140137331
lea rdx, str.CreateProcess:
lea rcx, [rbp + 0x160]
call fcn.1400238a0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rdx, [rsp + 0x64]
mov rcx, rsi
call fcn.1400122b0
mov byte [rbp + 0x268], 1
lea rcx, [rbp + 0x160]
call fcn.14000afe0
nop
test rbx, rbx
je 0x14013734d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14013739a
mov rax, qword [rbp + 0x60]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140137389
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013766c
call fcn.1401853a0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r13
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x1401373ac
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x14013756f
mov rdx, qword [rbp + 0xc0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401373eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140137623
call fcn.1401853a0
xor bl, bl
jmp 0x1401375a4
test rbx, rbx
je 0x140137406
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140137453
mov rax, qword [rbp + 0x60]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140137442
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013766c
call fcn.1401853a0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r13
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x140137465
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x1401374a5
mov rdx, qword [rbp + 0xc0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401374a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140137623
call fcn.1401853a0
lea rdx, [rsi + 0x60]
cmp qword [rdx + 0x18], 0x10
jb 0x1401374b3
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 0x140137573
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x270]
call fcn.1401a8d80
call fcn.140138af0
mov qword [rbp + 0x270], rax
mov dword [rbp + 0x278], 1
lea rcx, [rbp + 0x280]
call fcn.14000f010
nop
mov rcx, qword [rbp + 0x270]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d90b6.0]
cmp dword [rbp + 0x278], eax
setl byte [rbp + 0x378]
jl 0x140137563
lea rdx, str.WriteFile_stdin_:
lea rcx, [rbp + 0x270]
call fcn.140032540
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.1400122b0
mov byte [rbp + 0x378], 1
lea rcx, [rbp + 0x270]
call fcn.14000afe0
xor bl, bl
jmp 0x1401375a4
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x140137583
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
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.140135980
movzx ebx, al
test rdi, rdi
je 0x1401375b3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x1401375c3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x1401375d3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x1401375e3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x1401375f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movzx eax, bl
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140185380
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.1401b3c00
nop
lea rcx, [rbp - 0x78]
call fcn.140137700
nop
mov r8, rax
lea rdx, str.Unexpected_value_of_si.cb:
lea rcx, [rbp - 0x58]
call fcn.140011b70
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140023a00
lea rdx, [0x14028fdd0]
lea rcx, [rsp + 0x70]
call fcn.1401a8f20
nop
call fcn.140013c60
int3
call fcn.1401b3c00
int3