Function at 0x1401d6740
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 - 0x848]
sub rsp, 0x920
mov qword [rbp], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x810], rax
mov r14, rcx
xor r13d, r13d
mov r12d, r13d
mov dword [rbp - 0x7c], r13d
cmp dword [rcx + 0x18], r13d
jl 0x1401d6d34
mov r15d, r13d
lea rax, [0x14034d1a0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r13
test r15, r15
jne 0x1401d680b
mov rsi, 0xffffffff80000002
mov rdi, qword [0x14041eee8]
test rdi, rdi
je 0x1401d6894
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401d67d0
test ebx, ebx
jle 0x1401d6894
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x60]
call fcn.1402c06dc
mov edx, ebx
jmp 0x1401d688a
mov rsi, 0xffffffff80000003
mov rbx, r15
shl rbx, 4
add rbx, qword [r14 + 0x20]
mov edi, dword [rbx - 4]
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.1402028a0
movsxd r9, dword [rbx - 4]
mov ecx, dword [rsp + 0x68]
movsxd rax, dword [rsp + 0x6c]
sub ecx, eax
inc ecx
movsxd rdx, ecx
mov rcx, rax
mov rax, qword [rsp + 0x60]
lea rcx, [rax + rcx*2]
mov r8, qword [rbx - 0x10]
call fcn.1402c06dc
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140203bb0
mov edx, dword [rsp + 0x6c]
inc edx
lea rcx, [rsp + 0x60]
call fcn.1402028a0
movsxd rcx, dword [rsp + 0x6c]
mov rax, qword [rsp + 0x60]
mov edx, 0x5c
mov word [rax + rcx*2], dx
mov edx, dword [rsp + 0x6c]
inc edx
lea rcx, [rsp + 0x60]
call fcn.140203bb0
lea rdx, str.SOFTWARE
lea rcx, [rsp + 0x60]
call fcn.140200ef0
mov edx, dword [rsp + 0x6c]
inc edx
lea rcx, [rsp + 0x60]
call fcn.1402028a0
movsxd rdx, dword [rsp + 0x6c]
mov rax, qword [rsp + 0x60]
mov ecx, 0x5c
mov word [rax + rdx*2], cx
mov edx, dword [rsp + 0x6c]
inc edx
lea rcx, [rsp + 0x60]
call fcn.140203bb0
lea rdx, str.Classes
lea rcx, [rsp + 0x60]
call fcn.140200ef0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401d6d08
mov dword [rbp - 0x80], r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, r13d
cmp dword [rbp - 0x80], r13d
jbe 0x1401d6cfd
lea r12, [0x14034d1a0]
nop word [rax + rax]
mov dword [rbp - 0x4c], 0x800
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x4c]
lea r8, [rbp + 0x10]
mov edx, edi
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc edi
test eax, eax
jne 0x1401d6ce9
lea rax, [rbp + 0x10]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d69b1
mov qword [rsp + 0x78], r13
test ebx, ebx
jne 0x1401d69cb
mov qword [rsp + 0x70], r12
jmp 0x1401d69f1
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x10]
mov rcx, qword [rsp + 0x70]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140203bb0
nop
cmp dword [rsp + 0x7c], 4
jle 0x1401d6cd6
mov r8d, 1
lea rdx, [0x14034bd50]
lea rcx, [rsp + 0x70]
call fcn.140205020
lea rcx, [rsp + 0x70]
test al, al
je 0x1401d6a5f
mov r9d, dword [rsp + 0x7c]
dec r9d
mov r8d, 1
lea rdx, [rbp - 0x38]
call fcn.140204ad0
nop
mov rcx, rax
call fcn.140175d80
movzx ebx, al
cmp dword [rbp - 0x30], 0
jle 0x1401d6a5b
mov rcx, qword [rbp - 0x38]
call fcn.1402bd0e0
test bl, bl
jmp 0x1401d6a66
call fcn.140175d80
test al, al
je 0x1401d6cd6
mov r8, qword [rsp + 0x70]
lea rdx, str._s_shellopencommand
lea rcx, [rbp - 0x48]
call fcn.140202d40
nop
mov dword [rbp - 0x50], 0x800
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x10]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x1401d6cc6
lea rax, [rbp + 0x10]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d6ab0
mov qword [rbp - 0x70], r13
test ebx, ebx
jne 0x1401d6ac8
mov qword [rbp - 0x78], r12
jmp 0x1401d6aeb
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rbp - 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x10]
mov rcx, qword [rbp - 0x78]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.140203bb0
nop
mov r8d, 1
lea rdx, str.mshta.exe
lea rcx, [rbp - 0x78]
call fcn.140202610
test al, al
je 0x1401d6cb6
mov r8d, 1
lea rdx, str.javascript:
lea rcx, [rbp - 0x78]
call fcn.140202610
test al, al
jne 0x1401d6b4d
mov r8d, 1
lea rdx, str.about:_script_
lea rcx, [rbp - 0x78]
call fcn.140202610
test al, al
je 0x1401d6cb6
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x60]
test r15, r15
jne 0x1401d6bb0
lea rdx, str.HKLM_s_s_
lea rcx, [rbp - 0x28]
call fcn.140202d40
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1402028a0
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x68]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x60]
call fcn.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.140203bb0
nop
cmp dword [rbp - 0x20], r15d
jle 0x1401d6c07
mov rcx, qword [rbp - 0x28]
jmp 0x1401d6c02
lea rdx, str.HKU_s_s_
lea rcx, [rbp - 0x18]
call fcn.140202d40
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1402028a0
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x68]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x60]
call fcn.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.140203bb0
nop
cmp dword [rbp - 0x10], 0
jle 0x1401d6c07
mov rcx, qword [rbp - 0x18]
call fcn.1402bd0e0
mov ecx, 0xb8
call fcn.1402bcb4c
mov qword [rbp - 8], rax
test rax, rax
je 0x1401d6c34
mov r9b, 1
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140151e00
mov rbx, rax
jmp 0x1401d6c37
mov rbx, r13
test rbx, rbx
je 0x1401d6cb6
mov qword [rbp - 0x58], r13
mov edx, 0x16
lea rcx, [rbp - 0x60]
call fcn.1402028a0
mov eax, dword [rbp - 0x58]
inc eax
movsxd rdx, eax
mov r9d, 0x16
lea r8, str.Trojan.Poweliks_Kovter
mov rcx, qword [rbp - 0x60]
call fcn.1402c06dc
mov edx, 0x16
lea rcx, [rbp - 0x60]
call fcn.140203bb0
nop
lea r8, [rbp - 0x60]
mov edx, 2
mov rcx, rbx
call fcn.1400dab80
nop
cmp dword [rbp - 0x58], 0
jle 0x1401d6c9c
mov rcx, qword [rbp - 0x60]
call fcn.1402bd0e0
mov rax, qword [rbx]
mov rdx, qword [r14 + 8]
mov rcx, rbx
call qword [rax + 0x70]
mov rdx, rbx
mov rcx, qword [r14 + 8]
call fcn.1400fab10
nop
cmp dword [rbp - 0x70], 0
jle 0x1401d6cc6
mov rcx, qword [rbp - 0x78]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x40], 0
jle 0x1401d6cd6
mov rcx, qword [rbp - 0x48]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x78], 0
jle 0x1401d6cf0
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
jmp 0x1401d6cf0
cmp eax, 0x103
je 0x1401d6cf9
cmp edi, dword [rbp - 0x80]
jb 0x1401d6970
mov r12d, dword [rbp - 0x7c]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x68], 0
jle 0x1401d6d19
mov rcx, qword [rsp + 0x60]
call fcn.1402bd0e0
inc r12d
mov dword [rbp - 0x7c], r12d
inc r15
cmp r12d, dword [r14 + 0x18]
lea rax, [0x14034d1a0]
jle 0x1401d67a0
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.1402bcad0
lea r11, [rsp + 0x920]
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