Function at 0x140012230
Capabilities:
Accept command line arguments
Create thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x230
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov r8d, 0x104
lea rdx, [rsp + 0x110]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xc0
call fcn.14001b254
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x1400122bb
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call fcn.140008a30
mov qword [rsp + 0x90], rax
jmp 0x1400122c7
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [0x1400a4eb8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0xd8], rax
mov rax, qword [0x1400a4eb8]
add rax, 0x68
lea rdx, [rsp + 0xd8]
mov rcx, rax
call fcn.140013700
mov ecx, 0x58
call fcn.14001b254
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x140012343
mov rcx, qword [rsp + 0x98]
call fcn.140009300
mov qword [rsp + 0xa0], rax
jmp 0x14001234f
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [0x1400a4eb0], rax
xor edx, edx
mov rcx, qword [0x1400a4eb0]
call fcn.140009690
movzx eax, al
test eax, eax
jne 0x1400123a5
lea r8, [rsp + 0x110]
lea rdx, str.Log:_s_failed_to_read_resources._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
xor eax, eax
jmp 0x140012a7d
mov rax, qword [0x1400a4eb0]
mov rcx, qword [rax + 0x20]
call fcn.140029114
mov rcx, qword [0x1400a4eb8]
mov qword [rcx + 0x80], rax
mov rax, qword [0x1400a4eb0]
mov rcx, qword [rax + 0x28]
call fcn.140029114
mov rcx, qword [0x1400a4eb8]
mov qword [rcx + 0x88], rax
mov rax, qword [0x1400a4eb0]
mov rcx, qword [rax + 0x38]
call fcn.140029114
mov rcx, qword [0x1400a4eb8]
mov qword [rcx + 0x90], rax
mov rcx, qword [0x1400a4eb8]
call fcn.140007740
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140012457
lea rdx, str.Log:_CommandLineToArgvW_failed_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
xor eax, eax
jmp 0x140012a7d
cmp dword [rsp + 0x60], 2
jge 0x140012478
lea rdx, str.Log:2_arguments_needed__x32Mutex_and_x32ProcessName._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
xor eax, eax
jmp 0x140012a7d
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov r8, qword [rcx + rax]
lea rdx, str.Log:argv_0____ls_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov r8, qword [rcx + rax]
lea rdx, str.Log:argv_1____ls_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov ecx, 0x10
call fcn.14001b254
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1400124f6
mov rdi, qword [rsp + 0x68]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa8], rax
jmp 0x140012502
mov qword [rsp + 0xa8], 0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x70], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx + rax]
lea rcx, [0x140047934]
call fcn.1400018c0
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx + rax]
lea rcx, [0x140047aec]
call fcn.1400018c0
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 8], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
lea r8, [0x1400137e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400a4ec8], rax
mov qword [rsp + 0xb0], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0xc4]
lea rdx, str.target_process_list
mov rcx, qword [0x1400a4eb0]
call fcn.1400099d0
movzx eax, al
test eax, eax
jne 0x1400125fe
lea rdx, str.Log:failed_to_get_target_process_list_from_arguments__using_default_targets_list.__Taskmgr.exe_procexp.exe_procexp64.exe_perfmon.exe__n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
lea rcx, str.Taskmgr.exe_procexp.exe_procexp64.exe_perfmon.exe
call fcn.140001800
mov qword [rsp + 0x50], rax
jmp 0x140012617
mov rdx, qword [rsp + 0xb0]
lea rcx, [0x140047d38]
call fcn.140001800
mov qword [rsp + 0x50], rax
mov qword [rsp + 0xb8], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0xcc]
lea rdx, str.hook_type
mov rcx, qword [0x1400a4eb0]
call fcn.1400099d0
movzx eax, al
test eax, eax
jne 0x140012682
lea rdx, str.Log:failed_to_get_HookType_from_arguments._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov rcx, qword [0x1400a4eb8]
call fcn.140007920
xor eax, eax
jmp 0x140012a7d
mov rdx, qword [rsp + 0xb8]
lea rcx, [0x140047de8]
call fcn.140001800
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x50]
lea rdx, str.Log:target_process_list___ls_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov r8, qword [rsp + 0x80]
lea rdx, str.Log:hook_type___ls_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov ecx, 0x104
call fcn.14001b298
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x58], rax
mov r8d, 0x104
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.14001c9d0
mov rcx, qword [rsp + 0x58]
call fcn.140013bb0
test eax, eax
je 0x1400129c2
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.1400175b0
test eax, eax
je 0x140012978
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8b, 1
lea rdx, [0x140047e28]
mov rcx, qword [0x1400a4eb8]
call fcn.140008530
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8b, 1
lea rdx, str.startprocessmonitor
mov rcx, qword [0x1400a4eb8]
call fcn.140008530
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400161d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400a4ed8], rax
mov byte [rsp + 0x40], 0
lea rdx, str.Starting_waiting_for_processes_hook_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
call fcn.140012b00
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x40]
mov r8d, eax
lea rdx, str.Finished_waiting_for_processes_hook_value___d_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x140012963
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140013de0
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
je 0x140012919
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x58]
lea rcx, str._s___lu_
call fcn.1400018c0
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8b, 1
lea rdx, [0x140047ec8]
mov rcx, qword [0x1400a4eb8]
call fcn.1400083a0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xf0], rax
mov edx, 1
mov rcx, qword [rsp + 0xf0]
call fcn.14001b290
mov qword [rsp + 0x78], 0
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, eax
lea r8, [0x140013990]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400a4ed0], rax
lea rdx, str.Log:Start_waiting_for_Hider_thread..._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov edx, 0xffffffff
mov rcx, qword [0x1400a4ed8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, str.Log:Hider_thread_finished._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
jmp 0x140012961
lea rdx, str.Log:ExecuteFile_failed._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.startpayload
mov rcx, qword [0x1400a4eb8]
call fcn.1400083a0
jmp 0x140012976
lea rdx, str.Log:Waiting_for_hook_indicator_file_timedout.._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
jmp 0x1400129c0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140047f80]
mov rcx, qword [0x1400a4eb8]
call fcn.140008530
lea rdx, str.Error:Failed_to_Prepare_Contents_for_the_hooking_dll._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
jmp 0x140012a0a
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.prepare
mov rcx, qword [0x1400a4eb8]
call fcn.140008530
lea rdx, str.Error:Failed_to_Save_Scenario_Payload_To_Disk._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xf8], rax
mov edx, 2
mov rcx, qword [rsp + 0xf8]
call fcn.14001b290
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x100], rax
mov edx, 2
mov rcx, qword [rsp + 0x100]
call fcn.14001b290
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x108], rax
mov edx, 1
mov rcx, qword [rsp + 0x108]
call fcn.14001b290
call fcn.140013aa0
mov rcx, qword [0x1400a4eb8]
call fcn.140007920
xor eax, eax
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14001b8a0
add rsp, 0x230
pop rdi
ret