Function at 0x14009a750
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x340
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov dword [rbp - 0x58], edx
mov r13, rcx
mov qword [rbp - 0x50], rcx
mov qword [rbp + 0x20], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp + 0x28], 1
xor r14d, r14d
mov r15d, r14d
mov qword [rbp - 0x48], r14
mov edi, r14d
mov dword [rsp + 0x44], r14d
or r12, 0xffffffffffffffff
mov rbx, r14
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x38], r14
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, [0x140008c60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009b001
mov eax, r14d
mov rbx, qword [rbp - 0x38]
mov qword [rbp - 0x30], rbx
test eax, eax
jne 0x14009b001
mov dword [rbp - 0x60], 0x100
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x60]
lea r8, [rbp + 0x30]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14009b012
test eax, eax
jne 0x14009afb7
lea rdx, [0x140008c60]
lea rcx, [rsp + 0x50]
call fcn.140011450
nop
lea rcx, [rbp + 0x30]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14009a86b
mov r8d, eax
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140010e38
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], r14
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009af5f
mov rsi, qword [rsp + 0x68]
mov qword [rbp], rsi
mov rax, qword [section..data]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140015690]
lea rcx, section..data
call rbx
add rax, 0x18
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
lea rdx, [0x14009b070]
lea rcx, [rbp]
call fcn.1400d252c
test eax, eax
je 0x14009a99c
mov r15d, r14d
mov rsi, qword [rsp + 0x70]
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x14009a941
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009a952
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rsi, qword [rsp + 0x50]
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x14009a984
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14009afa8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14009afa8
mov rax, qword [section..data]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140015690]
lea rcx, section..data
call rbx
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
lea rdx, [0x14009b098]
lea rcx, [rbp]
call fcn.1400d252c
test eax, eax
je 0x14009aa18
mov r15d, r14d
mov rsi, qword [rsp + 0x58]
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x14009a90f
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
jmp 0x14009a90f
call fcn.14009b2f0
test al, al
je 0x14009aaad
mov qword [rbp - 0x40], r14
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, [0x140008cc0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009aaef
mov rbx, qword [rbp - 0x40]
mov dword [rsp + 0x60], r14d
mov dword [rbp - 0x5c], 4
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 8]
xor r8d, r8d
lea rdx, [0x140008d50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x60], 1
sete dil
test rbx, rbx
je 0x14009aaa8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x14009aaef
mov dword [rbp - 0x64], 4
lea rax, [rbp - 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, [0x14009b0b0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009aaef
cmp dword [rbp - 0x70], 4
jne 0x14009aaef
mov eax, r14d
test eax, eax
je 0x14009aaf4
mov dword [rsp + 0x48], r14d
mov dword [rbp - 0x68], 4
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x6c]
xor r8d, r8d
lea rdx, [0x14009b0e0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009ab36
cmp dword [rbp - 0x6c], 4
jne 0x14009ab36
mov eax, r14d
test eax, eax
je 0x14009ab3b
mov dword [rsp + 0x4c], r14d
mov byte [rsp + 0x42], r14b
mov byte [rsp + 0x40], 1
mov rax, qword [section..data]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140015690]
lea rcx, section..data
call rbx
lea rsi, [rax + 0x18]
mov qword [rbp - 0x78], rsi
lea rdi, [r13 + 0x28]
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.14009c81c
test rax, rax
je 0x14009ab90
lea rdx, [rax + 8]
lea rcx, [rbp - 0x78]
call fcn.1400115a8
mov rsi, qword [rbp - 0x78]
cmp dword [rsi - 0x10], r14d
je 0x14009abce
mov byte [rsp + 0x42], 1
lea rdx, [0x1400055f4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
sete byte [rsp + 0x40]
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.14009c81c
test rax, rax
je 0x14009abce
mov rdx, rax
mov rcx, rdi
call fcn.14009c924
mov qword [rbp - 0x18], r14
lea rdx, [0x1400055f4]
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
sete r12b
mov byte [rsp + 0x41], r12b
test r12b, r12b
jne 0x14009acb7
lea rax, [rbp - 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x18]
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x14009ac6e
mov byte [rsp + 0x41], 1
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x14009acb7
test byte [rcx + 0x1c], 2
je 0x14009acb7
cmp byte [rcx + 0x19], 5
jb 0x14009acb7
mov edx, SafeArrayGetDim
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x140008e10]
mov rcx, qword [rcx + 0x10]
call fcn.140011da0
jmp 0x14009acb7
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.14009c81c
test rax, rax
jne 0x14009ac90
mov r8, rbx
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.14009c664
jmp 0x14009acb7
lea rcx, [rax + 8]
test rbx, rbx
jne 0x14009ac9e
mov eax, r14d
jmp 0x14009acac
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x14009aca2
mov r8d, eax
mov rdx, rbx
call fcn.1400118b4
mov byte [rsp + 0x43], 1
mov rax, qword [section..data]
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [fcn.140015690]
lea rcx, section..data
call rdi
add rax, 0x18
mov qword [rsp + 0x78], rax
lea r14, [r13 + 0x58]
mov qword [rbp - 0x10], r14
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.14009cc00
mov rdi, qword [rsp + 0x58]
test rax, rax
je 0x14009ad3d
lea r14, [rax + 8]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.1400115a8
mov al, byte [r14 + 8]
mov byte [rbp - 0x80], al
mov al, byte [r14 + 9]
mov byte [rbp - 0x7f], al
mov rdx, rdi
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
xor r14d, r14d
test eax, eax
jne 0x14009ad39
mov al, r14b
jmp 0x14009adae
mov r14, qword [rbp - 0x10]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1400115a8
cmp dword [rsp + 0x48], 1
sete r12b
mov byte [rbp - 0x80], r12b
cmp dword [rsp + 0x4c], 1
sete r13b
mov byte [rbp - 0x7f], r13b
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.14009cc00
test rax, rax
jne 0x14009ad8a
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.14009ca40
jmp 0x14009ada3
lea r14, [rax + 8]
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.1400115a8
mov byte [r14 + 8], r12b
mov byte [r14 + 9], r13b
xor r14d, r14d
mov r13, qword [rbp - 0x50]
mov al, byte [rsp + 0x43]
cmp dword [rbp - 0x58], r14d
je 0x14009aef0
mov dl, byte [rsp + 0x40]
cmp byte [rsp + 0x42], r14b
je 0x14009adc7
test dl, dl
je 0x14009ae31
mov cl, byte [rsp + 0x41]
test cl, cl
jne 0x14009ae2b
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14009ae14
test byte [rcx + 0x1c], 2
je 0x14009ae14
cmp byte [rcx + 0x19], 5
jb 0x14009ae14
mov edx, reloc.Cabinet.dll_FCIFlushCabinet
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140008e10]
mov rcx, qword [rcx + 0x10]
call fcn.140033380
cmp dword [rsp + 0x4c], 1
sete cl
cmp dword [rsp + 0x48], 1
sete al
xor edx, edx
jmp 0x14009aed3
test dl, dl
jne 0x14009ae89
jmp 0x14009ae35
mov cl, byte [rsp + 0x41]
test cl, cl
je 0x14009ae89
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14009ae70
test byte [rcx + 0x1c], 2
je 0x14009ae70
cmp byte [rcx + 0x19], 5
jb 0x14009ae70
mov edx, reloc.Cabinet.dll_FCIDestroy
mov r9, rsi
lea r8, [0x140008e10]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcd0
mov byte [rsp + 0x30], r14b
mov byte [rsp + 0x28], r14b
mov qword [rsp + 0x20], r14
mov r8, rsi
mov edx, 1
jmp 0x14009aee3
test al, al
je 0x14009aebe
cmp dword [rsp + 0x4c], 1
sete cl
cmp dword [rsp + 0x48], 1
sete al
mov byte [rsp + 0x30], cl
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x30]
mov r8, rbx
mov edx, 2
mov rcx, r13
call fcn.14009b114
cmp dword [rsp + 0x4c], 1
sete cl
cmp dword [rsp + 0x48], 1
sete al
mov edx, 3
mov byte [rsp + 0x30], cl
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
mov r8, rbx
lea r9, [rbp + 0x30]
mov rcx, r13
call fcn.14009b114
nop
mov rsi, qword [rsp + 0x78]
or r12, 0xffffffffffffffff
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x14009af26
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rsi, qword [rbp - 0x78]
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x14009a9de
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
jmp 0x14009a9de
mov r15d, r14d
mov rsi, qword [rsp + 0x50]
mov eax, r12d
lock xadd dword [rsi - 8], eax
add eax, r12d
test eax, eax
jg 0x14009af97
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov edi, dword [rsp + 0x44]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14009afac
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14009afac
mov edi, dword [rsp + 0x44]
inc edi
mov dword [rsp + 0x44], edi
jmp 0x14009a7bd
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14009b012
test byte [rcx + 0x1c], 2
je 0x14009b012
cmp byte [rcx + 0x19], 5
jb 0x14009b012
mov edx, reloc.WSOCK32.dll_inet_ntoa
mov r9d, r15d
lea r8, [0x140008e10]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
jmp 0x14009b012
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
test rbx, rbx
je 0x14009b020
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14009b030
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, r15d
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140001000
lea r11, [rsp + 0x340]
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