Function at 0x140059b10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov ebx, r8d
mov r13, rdx
mov rsi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp qword [rdx + 0x18], 7
mov rdi, rdx
jbe 0x140059b54
mov rdi, qword [r13]
lea rcx, [0x1401a0270]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
mov rdx, rdi
test rax, rax
je 0x140059bd2
mov r8d, ebx
xor r9d, r9d
call rax
test eax, eax
je 0x140059bdc
mov qword [rsp + 0x48], 0
mov r9d, ebx
or r9d, 8
cmp qword [r13 + 0x18], 7
mov rdx, r13
jbe 0x140059ba6
mov rdx, qword [r13]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor edi, edi
mov rcx, rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140059be3
cmp eax, 2
je 0x14005a065
mov edi, eax
jmp 0x14005a065
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140059b88
xor edi, edi
jmp 0x14005a065
mov dword [rsp + 0x40], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
mov rbp, qword [r13 + 0x10]
cmp qword [r13 + 0x18], 7
mov rdi, r13
jbe 0x140059c04
mov rdi, qword [r13]
cmp rbp, 7
ja 0x140059c33
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], 7
mov ebx, 7
mov rax, rbp
jmp 0x140059cc3
mov rbx, rbp
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmovae rbx, rax
mov rax, rbx
add rax, 1
lea rcx, [rbx + rbx + 2]
mov rax, 0xffffffffffffffff
cmovs rcx, rax
cmp rcx, 0x1000
jb 0x140059c86
add rcx, 0x27
cmovb rcx, rax
call fcn.14014b1a0
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
jmp 0x140059c97
test rcx, rcx
je 0x140059c95
call fcn.14014b1a0
mov rcx, rax
jmp 0x140059c97
xor ecx, ecx
mov qword [rsp + 0x70], rcx
lea r8, [rbp + 2]
add r8, rbp
mov rdx, rdi
call fcn.14016f270
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rbx
mov rax, qword [r13 + 0x10]
lea r12, [rsp + 0x70]
test rax, rax
je 0x140059d25
mov rcx, r12
cmp rbx, 7
jbe 0x140059cdb
mov rcx, qword [rsp + 0x70]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x140059d25
cmp rbx, rbp
jne 0x140059d0c
lea r12, [rsp + 0x70]
mov qword [rsp + 0x20], 1
lea r9, [0x140199100]
mov edx, 1
mov rcx, r12
call fcn.14000a0c0
jmp 0x140059d25
lea rax, [rbp + 1]
mov qword [rsp + 0x80], rax
mov word [rcx + rbp*2], 0x5c
mov word [rcx + rbp*2 + 2], 0
mov rbx, qword [rsp + 0x80]
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], 0
lea r14, [rsp + 0x50]
xorps xmm6, xmm6
lea rdi, [rsp + 0x70]
mov ebp, dword [rsp + 0x40]
nop word [rax + rax]
mov dword [rsp + 0x44], 0x104
mov edx, 0x104
mov rcx, r14
call fcn.14004b560
mov rcx, qword [rsp + 0x48]
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
xor edx, edx
mov r8, rax
lea r9, [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140059f86
mov r15d, dword [rsp + 0x44]
mov rax, qword [rsp + 0x60]
cmp rax, r15
jae 0x140059de0
mov r9, r15
sub r9, rax
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
sub rdx, rax
cmp rdx, r9
jae 0x140059e00
mov word [rsp + 0x20], 0
mov rcx, r14
mov rdx, r9
call fcn.14000eb70
jmp 0x140059e3c
cmp qword [rsp + 0x68], 7
mov rax, r14
jbe 0x140059df0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], r15
mov word [rax + r15*2], 0
jmp 0x140059e3c
mov qword [rsp + 0x60], r15
mov rbp, r14
cmp rcx, 7
jbe 0x140059e13
mov rbp, qword [rsp + 0x50]
test r9, r9
je 0x140059e30
lea rcx, [rax*2]
add rcx, rbp
add r9, r9
xor edx, edx
mov r8, r9
call fcn.14016f6e0
mov word [rbp + r15*2], 0
mov ebp, dword [rsp + 0x40]
mov rax, qword [rsp + 0x80]
mov r9, rbx
sub r9, rax
jbe 0x140059e80
mov rcx, qword [rsp + 0x88]
mov rdx, rcx
sub rdx, rax
cmp rdx, r9
jae 0x140059eb0
mov word [rsp + 0x20], 0
mov rcx, rdi
mov rdx, r9
call fcn.14000eb70
jmp 0x140059ee7
cmp qword [rsp + 0x88], 7
mov rax, r12
jbe 0x140059e93
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rbx
mov word [rax + rbx*2], 0
jmp 0x140059ee7
mov qword [rsp + 0x80], rbx
mov rdi, r12
cmp rcx, 7
jbe 0x140059ec6
mov rdi, qword [rsp + 0x70]
test r9, r9
je 0x140059edc
lea rcx, [rdi + rax*2]
add r9, r9
xor edx, edx
mov r8, r9
call fcn.14016f6e0
mov word [rdi + rbx*2], 0
lea rdi, [rsp + 0x70]
mov r8, qword [rsp + 0x60]
cmp qword [rsp + 0x68], 7
mov r9, r14
jbe 0x140059efc
mov r9, qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov rdx, rcx
sub rdx, rax
cmp rdx, r8
jae 0x140059f30
mov qword [rsp + 0x20], r8
mov rcx, rdi
mov rdx, r8
call fcn.14000a0c0
jmp 0x140059f70
lea rdi, [rax + r8]
mov qword [rsp + 0x80], rdi
mov rbp, r12
cmp rcx, 7
jbe 0x140059f4a
mov rbp, qword [rsp + 0x70]
lea rcx, [rax*2]
add rcx, rbp
add r8, r8
mov rdx, r9
call fcn.14016f270
mov word [rbp + rdi*2], 0
mov ebp, dword [rsp + 0x40]
lea rdi, [rsp + 0x70]
mov rcx, rsi
mov rdx, rdi
mov r8d, ebp
call fcn.140059b10
test eax, eax
je 0x140059d60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [r13 + 0x18], 7
jbe 0x140059f9c
mov r13, qword [r13]
lea rcx, [0x1401a0270]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
mov rdx, r13
test rax, rax
je 0x140059fce
mov r8d, ebp
xor r9d, r9d
call rax
jmp 0x140059fd4
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
mov rax, qword [rsp + 0x68]
cmp rax, 8
jb 0x14005a01e
mov rcx, qword [rsp + 0x50]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14005a019
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14005a093
add rax, rax
add rax, 0x29
mov rdx, rax
call fcn.14014b210
mov rax, qword [rsp + 0x88]
cmp rax, 8
jb 0x14005a065
mov rcx, qword [rsp + 0x70]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14005a060
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14005a093
add rax, rax
add rax, 0x29
mov rdx, rax
call fcn.14014b210
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14014b5e0
mov eax, edi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140179190
ud2