Function at 0x14004f220
Capabilities:
Encode data using xor
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x8f0], rbx
mov rax, qword [0x1401cee90]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov r12, rdx
mov rbx, rcx
mov eax, dword [0x1401d6d80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
xor r13d, r13d
cmp ecx, 0xf
jne 0x14004f2b5
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x68], r13
mov eax, dword [0x1401d6d80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 2
jne 0x14004f316
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.14004c6a0
nop
mov qword [rsp + 0x70], r13
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [0x1401d1d58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14004f367
mov dword [rsp + 0x60], r13d
mov ecx, r13d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
test ecx, ecx
setne bl
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or rsi, 0xffffffffffffffff
lock add dword [rdx + 0x10], esi
jg 0x14004f388
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14004f3c5
mov ecx, dword [0x1401d6d80]
imul ecx, ecx
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0xa
jne 0x14004f3b8
inc dword [0x1401d7e98]
xor dil, dil
mov rbx, qword [rsp + 0x58]
jmp 0x14004f72c
mov r15d, r13d
mov r8d, dword [0x1401d6d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 9
jne 0x14004f4a0
mov edx, r13d
nop dword [rax]
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, r8d
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
add r8d, eax
inc edx
cmp edx, 0x100
jl 0x14004f400
mov dword [0x1401d6d80], r8d
nop word [rax + rax]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
and ecx, 0x80000007
jge 0x14004f4be
dec ecx
or ecx, 0xfffffff8
inc ecx
cmp ecx, 7
jne 0x14004f515
mov eax, dword [str.rfILoP]
mov dword [rsp + 0x48], eax
movzx eax, word [0x14015d7b0]
mov word [rsp + 0x4c], ax
movzx eax, byte [0x14015d7b2]
mov byte [rsp + 0x4e], al
lea rax, [rsp + 0x48]
mov rcx, rsi
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14004f4f0
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400d4448
mov rcx, rax
call fcn.1400d5528
mov word [rbp - 0x70], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x6e]
call fcn.1400da240
mov dword [rsp + 0x50], 0x400
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x70]
mov edx, r15d
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc r15d
test eax, eax
jne 0x14004f70e
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
test rax, 0xffffffffffff0000
jne 0x14004f5c2
movzx ebx, cx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004f6aa
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002960
jmp 0x14004f6aa
lea rax, [rbp - 0x70]
mov rdi, rsi
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004f5d0
test edi, edi
jne 0x14004f634
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004f6aa
cmp dword [rdx + 0x10], 0
jge 0x14004f60c
cmp dword [rbx - 0xc], 0
jl 0x14004f6ed
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x14004f6aa
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004f620
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
jmp 0x14004f6aa
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp - 0x70]
sub rsi, rbx
sar rsi, 1
test edi, edi
js 0x14004f703
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14004f66c
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002760
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14004f690
lea r8, [rbx + rsi*2]
call fcn.1400d562c
jmp 0x14004f699
lea r8, [rbp - 0x70]
call fcn.1400d57ec
cmp edi, dword [rbx - 0xc]
jg 0x14004f6f8
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], r13w
or rsi, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.14002b860
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jle 0x14004f6d8
mov r8d, dword [0x1401d6d80]
jmp 0x14004f4a0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, dword [0x1401d6d80]
jmp 0x14004f4a0
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
test rbx, rbx
je 0x14004f724
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], r13d
mov dil, 1
test rbx, rbx
je 0x14004f73f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x60], r13d
movzx eax, dil
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1400d4e00
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret