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 [0x140097e48]
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.14001b1c0
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.140008be0
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 [0x1400990b8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0xe0], rax
mov rax, qword [0x1400990b8]
add rax, 0x68
lea rdx, [rsp + 0xe0]
mov rcx, rax
call fcn.1400137b0
mov ecx, 0x58
call fcn.14001b1c0
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140012343
mov rcx, qword [rsp + 0x90]
call fcn.1400094b0
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 [0x1400990b0], rax
xor edx, edx
mov rcx, qword [0x1400990b0]
call fcn.140009840
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 [0x1400990b8]
call fcn.140008320
xor eax, eax
jmp 0x140012ba2
mov rax, qword [0x1400990b0]
mov rcx, qword [rax + 0x20]
call fcn.140029114
mov rcx, qword [0x1400990b8]
mov qword [rcx + 0x80], rax
mov rax, qword [0x1400990b0]
mov rcx, qword [rax + 0x28]
call fcn.140029114
mov rcx, qword [0x1400990b8]
mov qword [rcx + 0x88], rax
mov rax, qword [0x1400990b0]
mov rcx, qword [rax + 0x38]
call fcn.140029114
mov rcx, qword [0x1400990b8]
mov qword [rcx + 0x90], rax
mov rcx, qword [0x1400990b8]
call fcn.1400078f0
lea rdx, str.Log:Started_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x64]
lea rdx, [0x140044ec0]
mov rcx, qword [0x1400990b0]
call fcn.140009b80
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, [0x140044ed0]
mov rcx, qword [0x1400990b0]
call fcn.140009b80
movzx eax, al
test eax, eax
je 0x1400124be
mov r8, qword [rsp + 0xf0]
lea rdx, str.Log:filename:__s_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
mov r8, qword [rsp + 0xf8]
lea rdx, str.Log:fileversion__s_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
jmp 0x1400124d1
lea rdx, str.Log:Could_not_find_fileversion_and_filename_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
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 [0x1400990b8]
call fcn.140008320
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 [0x1400990b8]
call fcn.140008320
lea rdx, [0x140044f98]
mov rcx, qword [0x1400990b8]
call fcn.140008320
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 [0x1400990b8]
call fcn.140008320
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 [0x1400990b8]
call fcn.140008320
mov ecx, 0x10
call fcn.14001b1c0
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, [0x140044d8c]
call fcn.140001d10
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, [0x140044fd4]
call fcn.140001d10
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, [0x140013890]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400990c8], 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 [0x1400990b0]
call fcn.140009b80
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 [0x1400990b8]
call fcn.140008320
lea rcx, str.Taskmgr.exe_procexp.exe_procexp64.exe_perfmon.exe
call fcn.140001c50
mov qword [rsp + 0x48], rax
jmp 0x1400126f0
mov rdx, qword [rsp + 0xa8]
lea rcx, [0x1400450e8]
call fcn.140001c50
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 [0x1400990b0]
call fcn.140009b80
movzx eax, al
test eax, eax
jne 0x14001276e
lea rdx, str.Log:failed_to_get_HookType_from_arguments._n
mov rcx, qword [0x1400990b8]
call fcn.140008320
lea rdx, [0x140045130]
mov rcx, qword [0x1400990b8]
call fcn.140008320
mov rcx, qword [0x1400990b8]
call fcn.140007ad0
xor eax, eax
jmp 0x140012ba2
mov rdx, qword [rsp + 0xb0]
lea rcx, [0x140045140]
call fcn.140001c50
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x48]
lea rdx, str.Log:target_process_list___ls_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
mov r8, qword [rsp + 0x80]
lea rdx, str.Log:hook_type___ls_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
mov ecx, 0x104
call fcn.14001b204
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.14001c950
mov rcx, qword [rsp + 0x50]
call fcn.140013c60
test eax, eax
je 0x140012ad4
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.1400175b0
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, [0x140045180]
mov rcx, qword [0x1400990b8]
call fcn.1400086e0
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 [0x1400990b8]
call fcn.1400086e0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140016280]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400990d8], rax
mov byte [rsp + 0x40], 0
lea rdx, str.Starting_waiting_for_processes_hook_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
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 [0x1400990b8]
call fcn.140008320
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x140012a62
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140013e90
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.140001d10
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, [0x140045220]
mov rcx, qword [0x1400990b8]
call fcn.140008550
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x108], rax
mov edx, 1
mov rcx, qword [rsp + 0x108]
call fcn.14001b1fc
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, [0x140013a40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400990d0], rax
lea rdx, str.Log:Start_waiting_for_Hider_thread..._n
mov rcx, qword [0x1400990b8]
call fcn.140008320
mov edx, 0xffffffff
mov rcx, qword [0x1400990d8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, str.Log:Hider_thread_finished._n
mov rcx, qword [0x1400990b8]
call fcn.140008320
jmp 0x140012a60
lea rdx, str.Log:ExecuteFile_failed._n
mov rcx, qword [0x1400990b8]
call fcn.140008320
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 [0x1400990b8]
call fcn.140008550
lea rdx, [0x1400452a8]
mov rcx, qword [0x1400990b8]
call fcn.140008320
jmp 0x140012a75
lea rdx, str.Log:Waiting_for_hook_indicator_file_timedout.._n
mov rcx, qword [0x1400990b8]
call fcn.140008320
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, [0x1400452e8]
mov rcx, qword [0x1400990b8]
call fcn.1400086e0
lea rdx, str.Error:Failed_to_Prepare_Contents_for_the_hooking_dll._n
mov rcx, qword [0x1400990b8]
call fcn.140008320
lea rdx, [0x140045330]
mov rcx, qword [0x1400990b8]
call fcn.140008320
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 [0x1400990b8]
call fcn.1400086e0
lea rdx, str.Error:Failed_to_Save_Scenario_Payload_To_Disk._n
mov rcx, qword [0x1400990b8]
call fcn.140008320
lea rdx, str.Finished_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x110], rax
mov edx, 2
mov rcx, qword [rsp + 0x110]
call fcn.14001b1fc
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x118], rax
mov edx, 2
mov rcx, qword [rsp + 0x118]
call fcn.14001b1fc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x120], rax
mov edx, 1
mov rcx, qword [rsp + 0x120]
call fcn.14001b1fc
call fcn.140013b50
mov rcx, qword [0x1400990b8]
call fcn.140007ad0
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001b810
add rsp, 0x250
pop rdi
ret