Function at 0x180045830
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xc08]
sub rsp, 0xcf0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x180143158]
xor rax, rsp
mov qword [rbp + 0xbe0], rax
xor r12d, r12d
mov dword [rsp + 0x6c], r12d
call fcn.1800121e0
mov rcx, rax
test rax, rax
je 0x180045e6b
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [0x1800fb948]
lea rdi, [r12 - 1]
cmp rdx, 0x10000
jae 0x1800458bb
movzx edx, dx
lea rcx, [rsp + 0x48]
call fcn.180012a10
jmp 0x1800458d8
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x1800458c0
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.180013c30
nop
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWARELudashi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180045de3
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x180045df8
xor edx, edx
mov r8d, 0x802
lea rcx, [rbp + 0x3d0]
call fcn.18009b770
mov dword [rsp + 0x68], 0x800
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0xffff
lea r8, str.VipLevel
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x180045de3
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r12w
mov r15d, 1
mov dword [rsp + 0x6c], r15d
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWAREComMaster
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180045ac4
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x180045ad9
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.18009b770
mov dword [rsp + 0x70], 0x208
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0xffff
lea r8, str.local_m2
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x180045a3b
lea rax, [rbp - 0x50]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x180045a23
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.18000f600
cmp qword [rbp - 0x68], 0
jne 0x180045ac4
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.18009b770
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.18007d640
lea rax, [rbp + 0x1c0]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x180045a75
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x78]
call fcn.18000f600
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
mov eax, dword [rbp - 0x68]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, r15d
xor r8d, r8d
lea rdx, str.local_m2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180045ad9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
lea rbx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rbx, qword [rbp - 0x78]
call fcn.1800121e0
mov rcx, rax
test rax, rax
je 0x180045e76
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
test rbx, rbx
je 0x180045b3c
cmp rbx, 0x10000
jae 0x180045b24
movzx edx, bx
lea rcx, [rsp + 0x58]
call fcn.180012a10
jmp 0x180045b50
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x180045b30
jmp 0x180045b3f
mov eax, r12d
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.180013c30
nop
call fcn.1800121e0
mov rcx, rax
test rax, rax
je 0x180045e81
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x3d0]
cmp rcx, 0x10000
jae 0x180045b99
lea rax, [rbp + 0x3d0]
movzx edx, ax
lea rcx, [rsp + 0x40]
call fcn.180012a10
jmp 0x180045cd7
lea rcx, [rbp + 0x3d0]
mov rbx, rdi
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x180045ba3
test ebx, ebx
jne 0x180045c10
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x180045cd7
cmp dword [rdx + 0x10], 0
jge 0x180045be4
cmp dword [rax - 0xc], 0
jl 0x180045e8c
mov dword [rax - 0x10], r12d
mov rax, qword [rsp + 0x40]
mov word [rax], r12w
jmp 0x180045cd7
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180045bf9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
jmp 0x180045cd7
mov r14d, dword [rax - 0x10]
lea rsi, [rbp + 0x3d0]
sub rsi, rax
sar rsi, 1
test ebx, ebx
js 0x180045e97
sub r15d, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, r15d
jge 0x180045c48
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.180012ba0
mov rax, qword [rsp + 0x40]
movsxd rcx, ebx
cmp rsi, r14
ja 0x180045c9f
lea rdx, [rax + rsi*2]
lea rsi, [rcx + rcx]
test rsi, rsi
je 0x180045cc1
test rdx, rdx
jne 0x180045c74
call fcn.18009e9ac
mov dword [rax], 0x16
call fcn.18009e85c
jmp 0x180045cbc
movsxd rcx, dword [rax - 0xc]
add rcx, rcx
cmp rcx, rsi
jae 0x180045c92
call fcn.18009e9ac
mov dword [rax], 0x22
call fcn.18009e85c
jmp 0x180045cbc
mov r8, rsi
mov rcx, rax
call fcn.18009b300
jmp 0x180045cbc
lea rsi, [rcx + rcx]
movsxd rdx, dword [rax - 0xc]
add rdx, rdx
mov r9, rsi
lea r8, [rbp + 0x3d0]
mov rcx, rax
call fcn.180012cf0
mov rax, qword [rsp + 0x40]
cmp ebx, dword [rax - 0xc]
jg 0x180045e60
mov dword [rax - 0x10], ebx
mov rax, qword [rsp + 0x40]
mov word [rsi + rax], r12w
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.180082540
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x48]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x180045d4a
cmp dword [rbx + 0x10], 0
jl 0x180045d3b
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x180045d3b
call fcn.180013800
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x180045d30
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x180045d4a
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.180013c30
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180045d69
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180045d88
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180045da7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x180045de3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045dde
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045e5a
call fcn.180050b00
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180045df8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r12
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1800a5988
mov esi, eax
inc eax
cmp eax, 2
cmova esi, r12d
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x180045e28
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rcx, qword [rbp + 0xbe0]
xor rcx, rsp
call fcn.180050f90
lea r11, [rsp + 0xcf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.18009e87c
nop
mov ecx, 0x80070057
call fcn.180010a30
nop
mov ecx, 0x80004005
call fcn.180010a30
nop
mov ecx, 0x80004005
call fcn.180010a30
nop
mov ecx, 0x80004005
call fcn.180010a30
nop
mov ecx, 0x80070057
call fcn.180010a30
int3
mov ecx, 0x80070057
call fcn.180010a30
int3