Function at 0x140002bc4
Capabilities:
Create process on windows
Resume thread

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4a0
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x140029010]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov qword [rbp - 0x38], r8
mov sil, dl
mov byte [rsp + 0x58], dl
mov r14, rcx
xor r15d, r15d
mov qword [r8], r15
mov qword [rbp - 0x80], r15
mov r13d, r15d
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov edi, r15d
mov qword [rbp - 0x58], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], r15d
call fcn.140002894
mov rcx, rax
test rax, rax
jne 0x140002c65
mov ecx, 0x80004005
call fcn.140002658
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rcx, [rbp + 0x180]
test sil, sil
jne 0x140002c91
call fcn.140001ca8
mov esi, eax
test eax, eax
js 0x14000340e
jmp 0x140002ca0
call fcn.140002aa8
mov esi, eax
test eax, eax
jne 0x14000340e
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x50]
call fcn.140003494
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x80]
mov r8, rbx
mov rdx, qword [r14]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r12d, 0x80004005
test eax, eax
jne 0x140002d0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
cmovns esi, r12d
jmp 0x140002d11
mov esi, r15d
test esi, esi
js 0x140003409
mov rbx, qword [rbp - 0x80]
mov esi, 1
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.1400036f8
test al, al
jne 0x140002d3d
mov ecx, 0x8007000e
call fcn.140002658
int3
mov r15, qword [rsp + 0x60]
test r15, r15
je 0x140002d4a
mov qword [r15], rbx
mov rbx, qword [rsp + 0x68]
add rbx, rsi
mov qword [rsp + 0x68], rbx
mov rcx, qword [r14 + 0x28]
test rcx, rcx
je 0x140002df2
mov r8d, esi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140002d8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
cmovns esi, r12d
jmp 0x140002d91
xor esi, esi
test esi, esi
js 0x140002de5
mov r13, qword [r14 + 0x28]
mov rsi, rbx
cmp rbx, qword [rsp + 0x70]
jb 0x140002dca
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x60]
call fcn.1400036f8
test al, al
jne 0x140002dc0
mov ecx, 0x8007000e
call fcn.140002658
int3
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
lea rax, [r15 + rsi*8]
test rax, rax
je 0x140002dd6
mov qword [rax], r13
mov esi, 1
add rbx, rsi
mov qword [rsp + 0x68], rbx
jmp 0x140002df2
mov rbx, qword [rsp + 0x50]
xor r15d, r15d
jmp 0x1400033e9
mov r8d, esi
mov edx, esi
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140002e21
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
cmovns esi, r12d
jmp 0x140002e23
xor esi, esi
test esi, esi
js 0x140003381
mov rcx, qword [r14 + 0x30]
mov qword [rbp - 0x78], rcx
mov rsi, rbx
cmp rbx, qword [rsp + 0x70]
jb 0x140002e68
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x60]
call fcn.1400036f8
test al, al
jne 0x140002e5a
mov ecx, 0x8007000e
call fcn.140002658
int3
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x78]
lea rax, [r15 + rsi*8]
test rax, rax
je 0x140002e74
mov qword [rax], rcx
inc rbx
mov qword [rsp + 0x68], rbx
mov edx, 1
mov r8d, edx
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140002eae
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
cmovns esi, r12d
jmp 0x140002eb0
xor esi, esi
test esi, esi
js 0x140003381
mov rcx, qword [r14 + 0x38]
mov qword [rbp - 0x70], rcx
mov rsi, rbx
cmp rbx, qword [rsp + 0x70]
jb 0x140002ef5
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x60]
call fcn.1400036f8
test al, al
jne 0x140002ee7
mov ecx, 0x8007000e
call fcn.140002658
int3
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x70]
lea rax, [r15 + rsi*8]
test rax, rax
je 0x140002f01
mov qword [rax], rcx
inc rbx
mov qword [rsp + 0x68], rbx
mov edx, 1
mov r8d, edx
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140002f3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
cmovns esi, r12d
jmp 0x140002f3d
xor esi, esi
test esi, esi
js 0x140003381
mov rcx, qword [r14 + 0x40]
mov qword [rbp - 0x68], rcx
mov rsi, rbx
cmp rbx, qword [rsp + 0x70]
jb 0x140002f82
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x60]
call fcn.1400036f8
test al, al
jne 0x140002f74
mov ecx, 0x8007000e
call fcn.140002658
int3
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x68]
lea rax, [r15 + rsi*8]
xor esi, esi
test rax, rax
je 0x140002f90
mov qword [rax], rcx
inc rbx
mov qword [rsp + 0x68], rbx
lea rdx, str.__CHILDSERVER
lea rcx, [rsp + 0x50]
call fcn.140003494
mov ebx, 0x10
mov r9d, ebx
lea r8d, [rbx + 1]
lea rdx, [rbp + 0x68]
mov rcx, qword [rbp - 0x80]
call fcn.14000c968
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.140003494
lea rdx, [0x140022190]
lea rcx, [rsp + 0x50]
call fcn.140003494
mov rdx, qword [r14 + 8]
lea rcx, [rsp + 0x50]
call fcn.140003494
lea rdx, [0x140022198]
lea rcx, [rsp + 0x50]
call fcn.140003494
lea rcx, [r14 + 0x10]
lea r8d, [rbx + 0x17]
lea rdx, [rbp + 0x130]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x50]
call fcn.140003494
lea rdx, [0x1400221a0]
lea rcx, [rsp + 0x50]
call fcn.140003494
mov r9d, ebx
lea r8d, [rbx - 7]
lea rdx, [rbp + 0x50]
mov ecx, dword [r14 + 0x20]
call fcn.14000c98c
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140003494
lea rbx, [0x1400221a8]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140003494
cmp byte [rsp + 0x58], sil
jne 0x140003097
movzx r8d, word [r14 + 0x24]
lea rdx, [0x1400221ac]
lea rcx, [rsp + 0x50]
call fcn.1400035c0
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140003494
mov r9d, 0x10
lea r8d, [r9 + 1]
lea rdx, [rbp + 0x90]
mov rcx, r13
call fcn.14000c968
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.140003494
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140003494
mov r9d, 0x10
lea r8d, [r9 + 1]
lea rdx, [rbp + 0xb8]
mov rcx, qword [rbp - 0x78]
call fcn.14000c968
lea rdx, [rbp + 0xb8]
lea rcx, [rsp + 0x50]
call fcn.140003494
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140003494
mov r9d, 0x10
lea r8d, [r9 + 1]
lea rdx, [rbp + 0xe0]
mov rcx, qword [rbp - 0x70]
call fcn.14000c968
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x50]
call fcn.140003494
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140003494
mov r9d, 0x10
lea r8d, [r9 + 1]
lea rdx, [rbp + 0x108]
mov rcx, qword [rbp - 0x68]
call fcn.14000c968
lea rdx, [rbp + 0x108]
lea rcx, [rsp + 0x50]
call fcn.140003494
lea rcx, [rsp + 0x50]
cmp byte [r14 + 0x48], sil
lea rdx, str.__silent
jne 0x140003182
lea rdx, str.__silent_
call fcn.140003494
lea rcx, [rsp + 0x50]
cmp byte [r14 + 0x49], sil
lea rdx, str.__servicemode
jne 0x1400031a0
lea rdx, str.__servicemode_
call fcn.140003494
xor r14d, r14d
mov qword [rbp - 0x60], r14
lea r9, [rbp - 0x60]
xor r8d, r8d
lea edx, [r14 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x1400031dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
cmovns esi, r12d
test esi, esi
je 0x1400031e9
cmp esi, 0x8007007a
jne 0x14000323b
mov rcx, qword [rbp - 0x60]
call fcn.14000c9c0
mov rbx, rax
lea r9, [rbp - 0x60]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x140003231
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
cmovns esi, r12d
mov rcx, rbx
call fcn.14000a890
jmp 0x14000323b
mov rdi, rbx
mov qword [rbp - 0x58], rbx
mov esi, r14d
test esi, esi
js 0x140003381
mov eax, dword [rsp + 0x68]
shl rax, 3
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
mov r9, r15
xor edx, edx
mov r8d, 0x20002
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
xor r15d, r15d
test eax, eax
jne 0x140003291
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
cmovns esi, r12d
jmp 0x140003294
mov esi, r15d
test esi, esi
js 0x140003384
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 8], 1
jle 0x1400032b9
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140002318
mov rbx, qword [rsp + 0x50]
mov dword [rbp - 0x20], 0x70
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x18]
call fcn.140008870
mov qword [rbp + 0x48], rdi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80084
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140003335
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
cmovns esi, r12d
jmp 0x140003338
mov esi, r15d
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14000c9c8
test eax, eax
js 0x140003376
cmp eax, dword [rbx - 0xc]
jg 0x140003376
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
test esi, esi
jne 0x140003389
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x38]
mov qword [rcx], rax
mov qword [rbp - 0x50], r15
jmp 0x140003389
mov ecx, 0x80070057
call fcn.140002658
int3
xor r15d, r15d
mov rbx, qword [rsp + 0x50]
test r13, r13
je 0x14000339e
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x1400033b7
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x1400033d0
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x1400033e9
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400033f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14000340e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000340e
mov rbx, qword [rsp + 0x50]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140003429
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140003439
call fcn.14000a890
nop
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x140003454
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rbx
call fcn.14000a890
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140003467
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x80], r15
mov eax, esi
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140006d10
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret