Function at 0x1401d4540
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 [0x140418a10]
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 0x1401d4b34
mov r15d, r13d
lea rax, [0x140348ca0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r13
test r15, r15
jne 0x1401d460b
mov rsi, 0xffffffff80000002
mov rdi, qword [0x14041a158]
test rdi, rdi
je 0x1401d4694
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401d45d0
test ebx, ebx
jle 0x1401d4694
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x60]
call fcn.1402bd21c
mov edx, ebx
jmp 0x1401d468a
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.1401ff260
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.1402bd21c
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140200570
mov edx, dword [rsp + 0x6c]
inc edx
lea rcx, [rsp + 0x60]
call fcn.1401ff260
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.140200570
lea rdx, str.SOFTWARE
lea rcx, [rsp + 0x60]
call fcn.1401fd8b0
mov edx, dword [rsp + 0x6c]
inc edx
lea rcx, [rsp + 0x60]
call fcn.1401ff260
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.140200570
lea rdx, str.Classes
lea rcx, [rsp + 0x60]
call fcn.1401fd8b0
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 0x1401d4b08
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 0x1401d4afd
lea r12, [0x140348ca0]
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 0x1401d4ae9
lea rax, [rbp + 0x10]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d47b1
mov qword [rsp + 0x78], r13
test ebx, ebx
jne 0x1401d47cb
mov qword [rsp + 0x70], r12
jmp 0x1401d47f1
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x10]
mov rcx, qword [rsp + 0x70]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140200570
nop
cmp dword [rsp + 0x7c], 4
jle 0x1401d4ad6
mov r8d, 1
lea rdx, [0x140347c20]
lea rcx, [rsp + 0x70]
call fcn.1402019e0
lea rcx, [rsp + 0x70]
test al, al
je 0x1401d485f
mov r9d, dword [rsp + 0x7c]
dec r9d
mov r8d, 1
lea rdx, [rbp - 0x38]
call fcn.140201490
nop
mov rcx, rax
call fcn.140174140
movzx ebx, al
cmp dword [rbp - 0x30], 0
jle 0x1401d485b
mov rcx, qword [rbp - 0x38]
call fcn.1402b9c20
test bl, bl
jmp 0x1401d4866
call fcn.140174140
test al, al
je 0x1401d4ad6
mov r8, qword [rsp + 0x70]
lea rdx, str._s_shellopencommand
lea rcx, [rbp - 0x48]
call fcn.1401ff700
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 0x1401d4ac6
lea rax, [rbp + 0x10]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d48b0
mov qword [rbp - 0x70], r13
test ebx, ebx
jne 0x1401d48c8
mov qword [rbp - 0x78], r12
jmp 0x1401d48eb
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rbp - 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x10]
mov rcx, qword [rbp - 0x78]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.140200570
nop
mov r8d, 1
lea rdx, str.mshta.exe
lea rcx, [rbp - 0x78]
call fcn.1401fefd0
test al, al
je 0x1401d4ab6
mov r8d, 1
lea rdx, str.javascript:
lea rcx, [rbp - 0x78]
call fcn.1401fefd0
test al, al
jne 0x1401d494d
mov r8d, 1
lea rdx, str.about:_script_
lea rcx, [rbp - 0x78]
call fcn.1401fefd0
test al, al
je 0x1401d4ab6
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x60]
test r15, r15
jne 0x1401d49b0
lea rdx, str.HKLM_s_s_
lea rcx, [rbp - 0x28]
call fcn.1401ff700
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.140200570
nop
cmp dword [rbp - 0x20], r15d
jle 0x1401d4a07
mov rcx, qword [rbp - 0x28]
jmp 0x1401d4a02
lea rdx, str.HKU_s_s_
lea rcx, [rbp - 0x18]
call fcn.1401ff700
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.140200570
nop
cmp dword [rbp - 0x10], 0
jle 0x1401d4a07
mov rcx, qword [rbp - 0x18]
call fcn.1402b9c20
mov ecx, 0xb8
call fcn.1402b968c
mov qword [rbp - 8], rax
test rax, rax
je 0x1401d4a34
mov r9b, 1
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1401503b0
mov rbx, rax
jmp 0x1401d4a37
mov rbx, r13
test rbx, rbx
je 0x1401d4ab6
mov qword [rbp - 0x58], r13
mov edx, 0x16
lea rcx, [rbp - 0x60]
call fcn.1401ff260
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.1402bd21c
mov edx, 0x16
lea rcx, [rbp - 0x60]
call fcn.140200570
nop
lea r8, [rbp - 0x60]
mov edx, 2
mov rcx, rbx
call fcn.1400d9700
nop
cmp dword [rbp - 0x58], 0
jle 0x1401d4a9c
mov rcx, qword [rbp - 0x60]
call fcn.1402b9c20
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.1400f9530
nop
cmp dword [rbp - 0x70], 0
jle 0x1401d4ac6
mov rcx, qword [rbp - 0x78]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x40], 0
jle 0x1401d4ad6
mov rcx, qword [rbp - 0x48]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x78], 0
jle 0x1401d4af0
mov rcx, qword [rsp + 0x70]
call fcn.1402b9c20
jmp 0x1401d4af0
cmp eax, 0x103
je 0x1401d4af9
cmp edi, dword [rbp - 0x80]
jb 0x1401d4770
mov r12d, dword [rbp - 0x7c]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x68], 0
jle 0x1401d4b19
mov rcx, qword [rsp + 0x60]
call fcn.1402b9c20
inc r12d
mov dword [rbp - 0x7c], r12d
inc r15
cmp r12d, dword [r14 + 0x18]
lea rax, [0x140348ca0]
jle 0x1401d45a0
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.1402b9610
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