Function at 0x140002198
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9c0]
sub rsp, 0xac0
mov rax, qword [0x14000a2a8]
xor rax, rsp
mov qword [rbp + 0x9b0], rax
xor r13d, r13d
mov dword [rsp + 0x34], 0x28
mov r12, rdx
mov qword [rsp + 0x38], r13
xor edx, edx
mov qword [rsp + 0x40], r13
mov r15d, r13d
mov dword [rsp + 0x48], 0x208
mov rbx, rcx
call fcn.140002e2c
mov edi, eax
mov eax, r13d
mov rcx, rbx
test rbx, rbx
je 0x140002214
cmp word [rbx], r13w
je 0x140002214
lea rcx, [rcx + 2]
inc eax
cmp word [rcx], r13w
jne 0x140002208
lea esi, [rax + 0x14]
xor ecx, ecx
mov edx, esi
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x140002529
mov rdx, qword [str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_]
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.140002b94
lea eax, [rdi + 1]
lea rcx, str.WinWord
test eax, 0xfffffffb
je 0x14000228b
cmp edi, 4
jae 0x140002521
lea rdx, [rdi + rdi*8]
mov esi, 0x208
mov rdx, qword [rcx + rdx*8]
mov r8d, esi
lea rcx, [rbp + 0x190]
call fcn.140002b6c
lea rdx, str..exe
jmp 0x140002384
mov r8d, esi
mov rdx, rbx
mov rcx, r14
call fcn.140002b94
mov r8d, esi
lea rdx, str._shell_
mov rcx, r14
call fcn.140002b6c
mov r8d, esi
mov rdx, r12
mov rcx, r14
call fcn.140002b6c
mov r8d, esi
lea rdx, str.command
mov rcx, r14
call fcn.140002b6c
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002521
movzx eax, byte [rbp - 0x80]
lea r9, [rsp + 0x30]
cmp dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x40]
cmove eax, r13d
xor r8d, r8d
mov byte [rbp - 0x80], al
xor edx, edx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002521
lea rdx, str..exe
lea rcx, [rbp - 0x80]
call fcn.140002d80
mov rbx, rax
test rax, rax
je 0x140002521
mov word [rax + 8], r13w
lea rax, [rbp - 0x80]
cmp rbx, rax
jbe 0x14000237c
lea rsi, [rbx - 2]
movzx ecx, word [rsi]
call fcn.140001a38
test eax, eax
je 0x14000237c
lea rax, [rbp - 0x80]
mov rbx, rsi
cmp rsi, rax
ja 0x140002360
mov esi, 0x208
mov rdx, rbx
mov r8d, esi
lea rcx, [rbp + 0x190]
call fcn.140002b6c
lea rax, [rsp + 0x38]
mov r12, 0xffffffff80000002
mov rcx, r12
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, [rbp + 0x190]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002409
movzx eax, byte [rsp + 0x50]
lea r9, [rsp + 0x30]
cmp dword [rsp + 0x30], 1
lea rdx, str.UseUrl
mov rcx, qword [rsp + 0x38]
cmove eax, r13d
xor r8d, r8d
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400024dc
lea eax, [rdi + 1]
test eax, 0xfffffffb
je 0x140002521
lea rbx, [rdi + rdi*8]
lea rdi, str.WinWord
cmp qword [rdi + rbx*8 + 0x40], r13
je 0x140002521
mov rdx, qword [str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_]
lea rcx, [rbp + 0x5a0]
mov r8d, esi
call fcn.140002b94
mov rdx, qword [rdi + rbx*8 + 0x40]
lea rcx, [rbp + 0x5a0]
mov r8d, esi
call fcn.140002b6c
mov r8d, esi
lea rdx, str..exe
lea rcx, [rbp + 0x5a0]
call fcn.140002b6c
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x5a0]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002521
movzx eax, byte [rsp + 0x50]
lea r9, [rsp + 0x30]
cmp dword [rsp + 0x30], 1
lea rdx, str.UseUrl
mov rcx, qword [rsp + 0x38]
cmove eax, r13d
xor r8d, r8d
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002521
cmp dword [rsp + 0x30], 1
jne 0x14000250d
lea rdx, [0x140009904]
lea rcx, [rsp + 0x50]
call fcn.140002a2c
test eax, eax
je 0x14000251b
lea rdx, [0x140009908]
lea rcx, [rsp + 0x50]
call fcn.140002a2c
test eax, eax
je 0x14000251b
cmp dword [rsp + 0x30], 4
jne 0x140002521
cmp dword [rsp + 0x50], r13d
je 0x140002521
mov r15d, 1
mov rcx, r14
call fcn.140003310
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140002539
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], r13
test rcx, rcx
je 0x14000254e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r15d
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.140006dd0
mov rbx, qword [rsp + 0xb10]
add rsp, 0xac0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret