Function at 0x1400039f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140018018]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r14, qword [rbp + 0x470]
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x214
mov r15d, r9d
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call sub.msvcrt.dll_memset
xor eax, eax
xor r12d, r12d
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x50], xmm0
cmp dword [rdi], r12d
je 0x140003c6b
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0x30], 6
jge 0x140003a94
mov ebx, 0x8007139f
jmp 0x140003c70
test rbx, rbx
je 0x140003c64
test rsi, rsi
je 0x140003c64
test r14, r14
je 0x140003c64
mov rdx, qword [rdi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x140003ac9
add rbx, 2
test ecx, ecx
jne 0x140003ab6
test eax, eax
je 0x140003ad7
mov ebx, 0x80070005
jmp 0x140003c70
lea rax, [rbp - 0x20]
mov edx, 0x104
sub rsi, rax
lea rcx, [rbp - 0x20]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140003b09
movzx eax, word [rsi + rcx]
test ax, ax
je 0x140003b09
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003ae7
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
je 0x140003c64
movzx eax, word [rbp - 0x20]
lea rcx, [rbp - 0x20]
jmp 0x140003b3d
cmp ax, 0x2f
jne 0x140003b36
mov eax, 0x5c
mov word [rcx], ax
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140003b28
lea rcx, [rbp - 0x20]
call fcn.140006e44
test eax, eax
js 0x140003c64
lea rcx, [rbp - 0x20]
call fcn.14000a140
test eax, eax
js 0x140003c64
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140002d9c
mov ebx, eax
test eax, eax
js 0x140003c70
cmp dword [rdi + 0x8c], r12d
jne 0x140003b94
lea rcx, [rbp - 0x20]
call fcn.14000748c
test eax, eax
je 0x140003acd
mov esi, 0x10a
lea r8, [rbp + 0x1f0]
mov edx, esi
lea rcx, [rbp - 0x20]
call fcn.14000b6e8
mov ebx, eax
test eax, eax
js 0x140003c70
test r15d, r15d
je 0x140003bd9
lea r8, str.__RegServer
mov edx, esi
lea rcx, [rbp + 0x1f0]
call fcn.1400025a0
mov ebx, eax
test eax, eax
js 0x140003c70
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], Ordinal_107
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x1f0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r12
xor ecx, ecx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop dword [rax + rax]
test eax, eax
jne 0x140003c45
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140003c70
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140003c70
mov r8, r14
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140002918
mov ebx, eax
test eax, eax
js 0x140003c70
mov dword [rdi + 0x30], 8
jmp 0x140003c70
mov ebx, 0x80070057
jmp 0x140003c70
mov ebx, 0x8007000e
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003c86
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140003c9c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp dword [rdi], r12d
je 0x140003cb1
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140001580
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret