Function at 0x18002e450
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r15d, r15d
mov r14, r8
cmp dword [rdx + 0x10], 2
mov rdi, rdx
mov r12b, cl
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
je 0x18002e4a6
mov ebx, 0xc000000d
jmp 0x18002e8e6
mov eax, 0x478
cmp dword [r8 + 4], eax
je 0x18002e4bb
cmp dword [r8 + 4], 0x4c0
jne 0x18002e49c
cmp dword [r8 + 4], eax
lea rdx, [r8 + 0x20]
mov rsi, r15
lea rcx, [rsp + 0x60]
cmovne rsi, r14
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rdx, [r14 + 0x220]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, 0x200
cmp word [rsp + 0x60], ax
jae 0x18002e8be
cmp word [rsp + 0x70], ax
jae 0x18002e8be
lea r13, [r14 + 0x464]
cmp dword [r13], 0x8003
jne 0x18002e8be
cmp dword [r14 + 0x420], 0x10
jne 0x18002e8be
test rsi, rsi
je 0x18002e547
cmp dword [rsi + 0x4bc], 0x800c
jne 0x18002e8be
cmp dword [rsi + 0x478], 0x20
jne 0x18002e8be
mov ecx, dword [rdi + 0x14]
lea rax, [rbp - 0x80]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov r8, rdi
mov dword [rsp + 0x48], 0x2080000
lea rdx, str.Hashes
call fcn.18002efb4
mov ebx, eax
test eax, eax
js 0x18002e8c3
mov rdx, qword [0x1800960e8]
lea rax, [rsp + 0x30]
mov ecx, dword [rdi + 0x18]
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov r15d, 0x2001f
mov r9d, r15d
mov byte [rsp + 0x20], r12b
call fcn.18000a400
mov ebx, eax
test eax, eax
js 0x18002e8c3
test rsi, rsi
jne 0x18002e5e7
xor r15d, r15d
test r12b, r12b
jne 0x18002e5e1
cmp dword [rdi + 0xa8], r15d
je 0x18002e5e1
mov rax, qword [rdi + 0x28]
sub rax, qword [r14 + 0x424]
jne 0x18002e5dc
mov rax, qword [rdi + 0x30]
sub rax, qword [r14 + 0x42c]
test rax, rax
je 0x18002e64f
mov r15d, 0x30019
lea rdx, str.SHA256
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov ebx, eax
test eax, eax
js 0x18002e8c3
mov rdx, qword [0x1800960e8]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
lea r8, [rbp - 0x80]
mov ecx, dword [rdi + 0x18]
test rsi, rsi
mov r9d, r15d
setne al
mov byte [rsp + 0x20], al
call fcn.18000a400
xor r15d, r15d
mov ebx, eax
test eax, eax
jns 0x18002e64f
test rsi, rsi
jne 0x18002e8c3
cmp eax, 0xc0000034
jne 0x18002e8c3
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 8
lea rdx, [0x18006cbc8]
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x18002e8c3
movzx eax, word [rsp + 0x62]
lea rdx, [0x18006cbb8]
mov rcx, qword [rsp + 0x30]
mov r12d, 1
mov dword [rsp + 0x28], eax
mov r9d, r12d
mov rax, qword [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x18002e8c3
movzx eax, word [rsp + 0x72]
lea rdx, [0x18006cba8]
mov rcx, qword [rsp + 0x30]
mov r9d, r12d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x18002e8c3
mov eax, dword [r14 + 0x470]
lea rdx, [0x18006cb98]
mov rcx, qword [rsp + 0x30]
mov r12d, 4
mov dword [rsp + 0x40], eax
mov r9d, r12d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x18002e8c3
mov eax, dword [rsp + 0x40]
lea r15, [r14 + 0x468]
mov rcx, qword [rsp + 0x30]
lea r9d, [r12 + 7]
mov dword [rsp + 0x28], 8
lea rdx, [0x18006cb88]
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov dword [rdi + 0xb0], eax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x18002e8c3
mov rax, qword [r15]
lea r9d, [r12 - 1]
mov rcx, qword [rsp + 0x30]
lea r15, [r14 + 0x424]
mov qword [rdi + 0x20], rax
lea rdx, [0x18006cb78]
mov eax, dword [r14 + 0x420]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x18002e8c3
mov rcx, qword [rsp + 0x30]
lea rdx, [0x18006cb68]
mov dword [rdi + 0xa8], 1
mov r9d, r12d
movups xmm0, xmmword [r15]
mov dword [rsp + 0x28], r12d
xor r8d, r8d
mov qword [rsp + 0x20], r13
movdqu xmmword [rdi + 0x28], xmm0
call qword [sym.imp.ntdll.dll_NtSetValueKey]
xor r15d, r15d
mov ebx, eax
test eax, eax
js 0x18002e8c3
test rsi, rsi
je 0x18002e88a
mov eax, dword [rsi + 0x478]
lea r14, [rsi + 0x47c]
mov rcx, qword [rsp + 0x38]
lea r9d, [r12 - 1]
mov dword [rsp + 0x28], eax
lea rdx, [0x18006cb78]
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x18002e8c3
mov rcx, qword [rsp + 0x38]
lea rax, [rsi + 0x4bc]
mov dword [rdi + 0xac], 1
lea rdx, [0x18006cb68]
movups xmm0, xmmword [r14]
mov dword [rsp + 0x28], r12d
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
movups xmmword [rdi + 0x68], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rdi + 0x78], xmm1
call qword [sym.imp.ntdll.dll_NtSetValueKey]
jmp 0x18002e8b3
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x18002e8b9
xor edx, edx
mov dword [rdi + 0xac], r15d
lea rcx, [rdi + 0x68]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov ebx, eax
test eax, eax
js 0x18002e8c3
mov ebx, r15d
jmp 0x18002e8c3
mov ebx, 0xc000000d
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x18002e8d6
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18002e8e6
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180017170
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret