Function at 0x14000529c
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e8]
sub rsp, 0x4e8
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
xor r13d, r13d
mov dword [rsp + 0x58], 0x200
mov r15, rcx
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x40], r13
mov ecx, r13d
mov qword [rsp + 0x38], rcx
mov r14, rdx
mov qword [rsp + 0x48], r13
lea edx, [r13 + 1]
mov qword [rsp + 0x50], r13
mov rsi, r9
mov dword [rsp + 0x34], r13d
mov r12, r8
mov edi, r13d
test r15, r15
je 0x140005316
mov eax, r13d
cmp word [r15], r13w
jne 0x140005318
mov eax, edx
test eax, eax
je 0x140005326
mov ebx, 0x80070057
jmp 0x140005656
test rsi, rsi
je 0x140005334
mov eax, r13d
cmp word [r9], r13w
jne 0x140005336
mov eax, edx
test eax, eax
jne 0x14000531c
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rsi
call fcn.140005e08
test eax, eax
js 0x140005384
mov edx, dword [rsp + 0x30]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140005384
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rsi
call fcn.140005e08
test eax, eax
jns 0x140005384
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, r13
test rdi, rdi
mov ebx, r13d
cmovne rsi, rdi
test r12, r12
je 0x14000539d
mov eax, r13d
cmp word [r12], r13w
jne 0x1400053a2
mov eax, 1
test eax, eax
jne 0x140005561
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005643
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.shell
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005643
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005643
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400097f0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005643
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], r13
xor edx, edx
mov dword [rsp + 0x30], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
mov ecx, r13d
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ecx, dword [rsp + 0x30]
mov edx, 0x80000000
mov r8d, 0x80070002
lea eax, [rbx + rdx]
test edx, eax
jne 0x1400054ec
cmp ebx, r8d
jne 0x140005643
cmp ebx, r8d
je 0x14000550c
test ebx, ebx
js 0x140005561
lea eax, [rcx - 1]
mov ecx, r13d
cmp eax, 1
setbe cl
test ecx, ecx
je 0x14000550c
cmp dword [rsp + 0x34], 2
ja 0x140005561
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], r13
lea rdx, [0x1400097f0]
mov dword [rsp + 0x30], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005643
cmp dword [rsp + 0x34], r13d
ja 0x140005561
mov ebx, 0x80004005
jmp 0x140005643
test r14, r14
je 0x14000556f
mov eax, r13d
cmp word [r14], r13w
jne 0x140005574
mov eax, 1
test eax, eax
jne 0x14000559f
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], r13d
mov rdx, r12
mov rcx, rsi
call fcn.140006038
mov ebx, eax
test eax, eax
js 0x14000559f
cmp dword [rsp + 0x30], r13d
je 0x14000559f
test r14, r14
jne 0x1400055e9
mov edx, 3
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x1400055e6
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
lea r14, [rbp - 0x30]
mov ebx, r13d
test eax, eax
cmovs r14, r15
jmp 0x1400055e9
mov r14, r15
mov r15d, 0x70
lea rcx, [rsp + 0x60]
mov r8d, r15d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], r15d
mov dword [rsp + 0x64], 0x101
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x58], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140005643
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rdi, rdi
je 0x140005651
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140005682
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
mov rax, qword [rsp + 0x38]
test ecx, ecx
cmovns rax, r13
mov qword [rsp + 0x38], rax
jmp 0x140005687
mov edi, 0x80070000
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400056b1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
mov rax, qword [rsp + 0x40]
test ecx, ecx
cmovns rax, r13
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400056db
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
mov rax, qword [rsp + 0x48]
test ecx, ecx
cmovns rax, r13
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400056eb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.1400070a0
add rsp, 0x4e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret