Function at 0x180001b70
Capabilities:
Create process on windows
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x140
movaps xmmword [rsp + 0x130], xmm6
cmp edx, 1
jne 0x180001f8c
lea rsi, [rsp + 0x80]
mov rcx, rsi
call fcn.180014590
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.180006110
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
cmp rbx, 2
jb 0x180001c63
mov rdi, qword [r14 + 0x18]
mov rsi, qword [r14 + 0x28]
test rsi, rsi
je 0x180001fa5
js 0x180002106
movzx eax, byte [0x18003bba8]
mov rcx, qword [0x18003bb38]
test rcx, rcx
jne 0x180001c03
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x180002114
mov rcx, rax
mov qword [0x18003bb38], rax
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x180002114
mov rbx, rax
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call fcn.18001b660
cmp rsi, 6
jne 0x180001c47
mov eax, 0x7472616d
xor eax, dword [rbx]
movzx ecx, word [rbx + 4]
xor ecx, 0x6b69
or ecx, eax
je 0x180002123
mov rcx, qword [0x18003bb38]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
test rbx, rbx
jne 0x180001fb5
cmp qword [rsp + 0x58], 0
je 0x180001c88
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x18003bb38]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
lea rsi, [rsp + 0x80]
mov rcx, rsi
call fcn.180014590
lea rcx, [rsp + 0x68]
mov rdx, rsi
call fcn.180006110
movzx eax, byte [0x18003bba8]
mov rcx, qword [0x18003bb38]
test rcx, rcx
jne 0x180001cd1
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800020f5
mov rcx, rax
mov qword [0x18003bb38], rax
mov r8d, 1
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800020f5
mov r15, rax
mov byte [rax], 0x22
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
mov qword [rsp + 0x90], 1
cmp qword [rsp + 0x78], 0
je 0x1800020d4
mov rax, qword [rsp + 0x68]
mov r14, qword [rax]
mov rdi, qword [rax + 0x10]
test rdi, rdi
jne 0x180001ff4
mov ebx, 1
mov ecx, 1
mov rdx, r14
mov r8, rdi
call fcn.18001b660
mov r14d, 1
add r15, r14
mov rcx, r15
mov rdx, rbx
mov r8, rdi
call fcn.18001b660
add r14, rdi
mov qword [rsp + 0x60], r14
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x50], xmm0
cmp qword [rsp + 0x58], r14
je 0x180002075
mov rax, qword [rsp + 0x50]
mov byte [rax + r14], 0x22
inc r14
mov qword [rsp + 0x90], r14
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x88]
sub rax, r14
cmp rax, 6
jbe 0x180002092
mov rax, qword [rsp + 0x80]
mov dword [rax + r14 + 3], 0x6b697472
mov dword [rax + r14], 0x72616d20
lea rax, [r14 + 7]
mov qword [rsp + 0x120], rax
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x110], xmm0
test rdi, rdi
je 0x180001dfe
mov rcx, qword [0x18003bb38]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
xorps xmm6, xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0xe0], 0
movaps xmmword [rsp + 0xf0], xmm6
mov qword [rsp + 0x100], 0
mov dword [rsp + 0xbc], 1
mov word [rsp + 0xc0], 0
movaps xmm0, xmmword [rsp + 0x110]
movaps xmmword [rsp + 0x50], xmm0
mov rdx, qword [rsp + 0x120]
mov qword [rsp + 0x60], rdx
mov rbx, qword [rsp + 0x58]
cmp rbx, rdx
je 0x1800020b5
mov rdi, qword [rsp + 0x50]
mov byte [rdi + rdx], 0
xor ecx, ecx
call fcn.180006100
mov rcx, rdx
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.kernel32.dll_CreateProcessA]
mov esi, eax
test rbx, rbx
je 0x180001ef0
mov rcx, qword [0x18003bb38]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
test esi, esi
jne 0x18000210d
mov rcx, qword [rsp + 0xf8]
cmp rcx, 0xffffffffffffffff
je 0x180001f0c
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rsp + 0xf0]
cmp rcx, 0xffffffffffffffff
je 0x180001f30
xor edx, edx
call qword [sym.imp.kernel32.dll_TerminateProcess]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x180001f70
mov rdi, qword [rsp + 0x68]
add rdi, 8
mov rbx, qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x180001f59
add rdi, 0x18
dec rsi
je 0x180001f70
cmp qword [rdi], 0
je 0x180001f50
mov r8, qword [rdi - 8]
mov rcx, qword [0x18003bb38]
xor edx, edx
call rbx
jmp 0x180001f50
cmp qword [rsp + 0x70], 0
je 0x180001f8c
mov r8, qword [rsp + 0x68]
mov rcx, qword [0x18003bb38]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
mov rdx, rdi
mov r8, rsi
call fcn.18001b660
add r14, 8
mov rsi, qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x180001fdd
add r14, 0x18
dec rbx
je 0x180001c6c
cmp qword [r14], 0
je 0x180001fd0
mov r8, qword [r14 - 8]
mov rcx, qword [0x18003bb38]
xor edx, edx
call rsi
jmp 0x180001fd0
js 0x180002106
movzx eax, byte [0x18003bba8]
mov rcx, qword [0x18003bb38]
test rcx, rcx
jne 0x180002026
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800020e6
mov rcx, rax
mov qword [0x18003bb38], rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800020e6
mov rbx, rax
mov rcx, rax
mov rdx, r14
mov r8, rdi
call fcn.18001b660
lea rcx, [rsp + 0x80]
mov edx, 1
mov r8, rdi
call fcn.180028750
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x90]
jmp 0x180001d4a
lea rcx, [rsp + 0x50]
mov r8d, 1
mov rdx, r14
call fcn.180028750
mov r14, qword [rsp + 0x60]
jmp 0x180001d7b
lea rcx, [rsp + 0x80]
mov r8d, 7
mov rdx, r14
call fcn.180028750
mov r14, qword [rsp + 0x90]
jmp 0x180001db2
lea rcx, [rsp + 0x50]
mov r8d, 1
call fcn.180028750
mov rbx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
jmp 0x180001e8e
lea r8, str.srclib.rs
xor ecx, ecx
xor edx, edx
call fcn.180028140
ud2
mov ecx, 1
mov rdx, rdi
call fcn.180027fb0
ud2
mov ecx, 1
mov edx, 1
call fcn.180027fb0
ud2
call fcn.1800021a0
ud2
call fcn.180016900
ud2
mov ecx, 1
mov rdx, rsi
call fcn.180027fb0
ud2
mov edx, 6
mov rcx, rbx
call fcn.180001040
mov rcx, qword [r14]
mov rdx, qword [r14 + 0x10]
lea r8, [rdx - 5]
call section..text
mov rsi, rax
mov rdi, rdx
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1800026f0
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.1800010d0
call fcn.180016900
ud2