Function at 0x180007240
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x180053038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, r8
mov rsi, rcx
cmp edx, 1
jne 0x18000748e
mov ecx, 0xd0
call fcn.180019f08
mov rbx, rax
mov qword [rsp + 0x30], rax
xor edx, edx
mov r8d, 0xd0
mov rcx, rax
call fcn.18001c990
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.180014a90
nop
mov qword [0x180055798], rax
mov rcx, rax
call fcn.180015280
mov rcx, qword [0x180055798]
mov rax, qword [rcx]
mov r8d, 2
lea rdx, str.Scenario_Initialized
call qword [rax + 0x10]
mov rcx, qword [0x180055798]
mov rax, qword [rcx]
movzx r8d, byte [rcx + 0x2c]
lea rdx, str.Is_Dll_Main_Thread_is_the_Executor_thread:__d
call qword [rax + 0x18]
mov rcx, qword [0x180055798]
mov rax, qword [rcx]
movzx r8d, byte [rcx + 0x2a]
lea rdx, str.Is_Dll_Reflective:__d
call qword [rax + 0x18]
mov rcx, qword [0x180055798]
mov rax, qword [rcx]
movzx r8d, byte [rcx + 0x2d]
lea rdx, str.Is_Dll_Packed:__d
call qword [rax + 0x18]
mov rcx, qword [0x180055798]
mov rax, qword [rcx]
mov r8, rsi
lea rdx, str.Module_base:__lx
call qword [rax + 0x18]
mov rcx, qword [0x180055798]
mov rax, qword [rcx]
mov r8, qword [rcx + 0x10]
lea rdx, str.Allocated_base_address:__lx
call qword [rax + 0x18]
mov rsi, qword [0x180055798]
xor ebx, ebx
mov rcx, rsi
call fcn.180015e20
lea ecx, [rbx + 0x20]
call fcn.180019f08
mov r14, rax
mov dword [rax + 9], ebx
mov word [rax + 0xd], bx
mov byte [rax + 0xf], bl
mov qword [rax], rsi
lea rax, [0x180005650]
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rbx
mov byte [r14 + 8], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, r14
lea r8, [0x180014a40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x1800073d5
lea rcx, [rsi + 0xa0]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x1800073c9
mov eax, dword [rsp + 0x30]
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x1800073ea
lea r8, [rsp + 0x30]
call fcn.180016230
jmp 0x1800073ea
mov edx, 0x20
mov rcx, r14
call fcn.180019f00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call fcn.180015eb0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x180055798]
cmp byte [rcx + 0x2c], 0
je 0x18000748e
mov rax, qword [rcx]
mov r8d, 2
lea rdx, str.Trying_to_save_PayloadMain_thread_handle
call qword [rax + 0x10]
mov r8d, 0x30
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov r9d, dword [rsp + 0x5c]
test rax, rax
je 0x18000745a
cmp r9d, 4
je 0x180007448
cmp r9d, 0x40
jne 0x18000745a
mov qword [rdi], rbp
mov r8d, 2
lea rdx, str.PayloadMain_thread_saved_successfully
jmp 0x180007481
mov rcx, qword [0x180055798]
mov rax, qword [rcx]
mov r8d, 2
lea rdx, str.Could_not_save_it__invalid_pointer__d
call qword [rax + 0x10]
mov r8d, 4
lea rdx, str.Could_not_start_scenario
mov rcx, qword [0x180055798]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180019ee0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret