Function at 0x1800050f0
Capabilities:
Delete file
Enumerate files on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x410
mov rax, qword [0x180019290]
xor rax, rsp
mov qword [rsp + 0x408], rax
lea rax, str.CLSIDBA202EBB_D757_4420_A1EF_49FB4B2D4EE5InprocServer32
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], 0xffffffff80000000
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180005459
cmp dword [rsp + 0x30], 1
jne 0x180005459
cmp dword [rsp + 0x34], 0x1000
jae 0x180005459
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov ecx, eax
call fcn.18000793c
mov qword [rsp + 0x3e8], rax
mov rax, qword [rsp + 0x3e8]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18000543f
cmp dword [rsp + 0x34], 0
jbe 0x180005255
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x3e0], eax
jmp 0x18000521d
mov eax, dword [rsp + 0x3e0]
dec eax
mov dword [rsp + 0x3e0], eax
cmp dword [rsp + 0x3e0], 0
jle 0x180005255
movsxd rax, dword [rsp + 0x3e0]
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x5c
jne 0x180005253
mov eax, dword [rsp + 0x3e0]
inc eax
cdqe
mov rcx, qword [rsp + 0x58]
mov byte [rcx + rax], 0
jmp 0x180005255
jmp 0x18000520d
mov byte [rsp + 0x70], 0
lea rax, [rsp + 0x71]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov byte [rsp + 0x2d0], 0
lea rax, [rsp + 0x2d1]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov r8d, eax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x2d0]
call fcn.180007c90
lea rdx, str..del
mov rcx, qword [rsp + 0x58]
call fcn.180008ae0
mov r8d, 0x140
xor edx, edx
lea rcx, [rsp + 0x190]
call fcn.180008100
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x180], rax
lea rcx, [rsp + 0x1bc]
call fcn.180008a20
test rax, rax
jbe 0x180005376
lea rcx, [rsp + 0x1bc]
call fcn.180008a20
cmp rax, 0x104
jae 0x180005376
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov r8d, eax
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x70]
call fcn.180007c90
lea rcx, [rsp + 0x1bc]
call fcn.180008a20
mov qword [rsp + 0x3f8], rax
lea rcx, [rsp + 0x2d0]
call fcn.180008a20
lea rax, [rsp + rax + 0x70]
mov rcx, qword [rsp + 0x3f8]
mov r8, rcx
lea rdx, [rsp + 0x1bc]
mov rcx, rax
call fcn.180007c90
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r8d, 0x140
xor edx, edx
lea rcx, [rsp + 0x190]
call fcn.180008100
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x18000543f
lea rcx, [rsp + 0x1bc]
call fcn.180008a20
test rax, rax
jbe 0x18000543a
lea rcx, [rsp + 0x1bc]
call fcn.180008a20
cmp rax, 0x104
jae 0x18000543a
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov r8d, eax
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x70]
call fcn.180007c90
lea rcx, [rsp + 0x1bc]
call fcn.180008a20
mov qword [rsp + 0x400], rax
lea rcx, [rsp + 0x2d0]
call fcn.180008a20
lea rax, [rsp + rax + 0x70]
mov rcx, qword [rsp + 0x400]
mov r8, rcx
lea rdx, [rsp + 0x1bc]
mov rcx, rax
call fcn.180007c90
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x18000538b
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x3f0], rax
mov rcx, qword [rsp + 0x3f0]
call fcn.180007c6c
mov eax, 1
mov rcx, qword [rsp + 0x408]
xor rcx, rsp
call fcn.180007fe0
add rsp, 0x410
pop rdi
ret