Function at 0x1401d2f20
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 [0x140415a10]
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 0x1401d3514
mov r15d, r13d
lea rax, [0x140346ce0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r13
test r15, r15
jne 0x1401d2feb
mov rsi, 0xffffffff80000002
mov rdi, qword [0x140416ee8]
test rdi, rdi
je 0x1401d3074
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401d2fb0
test ebx, ebx
jle 0x1401d3074
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x60]
call fcn.1402ba94c
mov edx, ebx
jmp 0x1401d306a
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.1401fcb40
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.1402ba94c
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.1401fde50
mov edx, dword [rsp + 0x6c]
inc edx
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
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.1401fde50
lea rdx, str.SOFTWARE
lea rcx, [rsp + 0x60]
call fcn.1401fb190
mov edx, dword [rsp + 0x6c]
inc edx
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
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.1401fde50
lea rdx, str.Classes
lea rcx, [rsp + 0x60]
call fcn.1401fb190
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 0x1401d34e8
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 0x1401d34dd
lea r12, [0x140346ce0]
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 0x1401d34c9
lea rax, [rbp + 0x10]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d3191
mov qword [rsp + 0x78], r13
test ebx, ebx
jne 0x1401d31ab
mov qword [rsp + 0x70], r12
jmp 0x1401d31d1
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x10]
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fde50
nop
cmp dword [rsp + 0x7c], 4
jle 0x1401d34b6
mov r8d, 1
lea rdx, [0x140345c60]
lea rcx, [rsp + 0x70]
call fcn.1401ff2c0
lea rcx, [rsp + 0x70]
test al, al
je 0x1401d323f
mov r9d, dword [rsp + 0x7c]
dec r9d
mov r8d, 1
lea rdx, [rbp - 0x38]
call fcn.1401fed70
nop
mov rcx, rax
call fcn.140172eb0
movzx ebx, al
cmp dword [rbp - 0x30], 0
jle 0x1401d323b
mov rcx, qword [rbp - 0x38]
call fcn.1402b7350
test bl, bl
jmp 0x1401d3246
call fcn.140172eb0
test al, al
je 0x1401d34b6
mov r8, qword [rsp + 0x70]
lea rdx, str._s_shellopencommand
lea rcx, [rbp - 0x48]
call fcn.1401fcfe0
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 0x1401d34a6
lea rax, [rbp + 0x10]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d3290
mov qword [rbp - 0x70], r13
test ebx, ebx
jne 0x1401d32a8
mov qword [rbp - 0x78], r12
jmp 0x1401d32cb
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rbp - 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x10]
mov rcx, qword [rbp - 0x78]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.1401fde50
nop
mov r8d, 1
lea rdx, str.mshta.exe
lea rcx, [rbp - 0x78]
call fcn.1401fc8b0
test al, al
je 0x1401d3496
mov r8d, 1
lea rdx, str.javascript:
lea rcx, [rbp - 0x78]
call fcn.1401fc8b0
test al, al
jne 0x1401d332d
mov r8d, 1
lea rdx, str.about:_script_
lea rcx, [rbp - 0x78]
call fcn.1401fc8b0
test al, al
je 0x1401d3496
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x60]
test r15, r15
jne 0x1401d3390
lea rdx, str.HKLM_s_s_
lea rcx, [rbp - 0x28]
call fcn.1401fcfe0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401fde50
nop
cmp dword [rbp - 0x20], r15d
jle 0x1401d33e7
mov rcx, qword [rbp - 0x28]
jmp 0x1401d33e2
lea rdx, str.HKU_s_s_
lea rcx, [rbp - 0x18]
call fcn.1401fcfe0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401fde50
nop
cmp dword [rbp - 0x10], 0
jle 0x1401d33e7
mov rcx, qword [rbp - 0x18]
call fcn.1402b7350
mov ecx, 0xb8
call fcn.1402b6dbc
mov qword [rbp - 8], rax
test rax, rax
je 0x1401d3414
mov r9b, 1
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14014f110
mov rbx, rax
jmp 0x1401d3417
mov rbx, r13
test rbx, rbx
je 0x1401d3496
mov qword [rbp - 0x58], r13
mov edx, 0x16
lea rcx, [rbp - 0x60]
call fcn.1401fcb40
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.1402ba94c
mov edx, 0x16
lea rcx, [rbp - 0x60]
call fcn.1401fde50
nop
lea r8, [rbp - 0x60]
mov edx, 2
mov rcx, rbx
call fcn.1400d9690
nop
cmp dword [rbp - 0x58], 0
jle 0x1401d347c
mov rcx, qword [rbp - 0x60]
call fcn.1402b7350
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.1400f8580
nop
cmp dword [rbp - 0x70], 0
jle 0x1401d34a6
mov rcx, qword [rbp - 0x78]
call fcn.1402b7350
nop
cmp dword [rbp - 0x40], 0
jle 0x1401d34b6
mov rcx, qword [rbp - 0x48]
call fcn.1402b7350
nop
cmp dword [rsp + 0x78], 0
jle 0x1401d34d0
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
jmp 0x1401d34d0
cmp eax, 0x103
je 0x1401d34d9
cmp edi, dword [rbp - 0x80]
jb 0x1401d3150
mov r12d, dword [rbp - 0x7c]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x68], 0
jle 0x1401d34f9
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
inc r12d
mov dword [rbp - 0x7c], r12d
inc r15
cmp r12d, dword [r14 + 0x18]
lea rax, [0x140346ce0]
jle 0x1401d2f80
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.1402b6d40
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