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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x388
mov eax, dword [0x10016210]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x388], ecx
mov dword [ebp - 0x18], str.CLSIDBA202EBB_D757_4420_A1EF_49FB4B2D4EE5InprocServer32
mov dword [ebp - 0xc], 0x80000000
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004476
cmp dword [ebp - 4], 1
jne 0x10004476
cmp dword [ebp - 8], 0x1000
jae 0x10004476
mov eax, dword [ebp - 8]
add eax, 1
push eax
call fcn.100068dc
add esp, 4
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x380]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000445e
cmp dword [ebp - 8], 0
jbe 0x10004283
mov eax, dword [ebp - 8]
mov dword [ebp - 0x37c], eax
jmp 0x10004258
mov ecx, dword [ebp - 0x37c]
sub ecx, 1
mov dword [ebp - 0x37c], ecx
cmp dword [ebp - 0x37c], 0
jle 0x10004283
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x37c]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x10004281
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x37c]
mov byte [ecx + 1], 0
jmp 0x10004283
jmp 0x10004249
mov byte [ebp - 0x128], 0
push 0x103
push 0
lea edx, [ebp - 0x127]
push edx
call fcn.10008320
add esp, 0xc
mov byte [ebp - 0x378], 0
push 0x103
push 0
lea eax, [ebp - 0x377]
push eax
call fcn.10008320
add esp, 0xc
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x378]
push eax
call fcn.10007fb0
add esp, 0xc
push str..del
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10008a20
add esp, 8
push 0x140
push 0
lea edx, [ebp - 0x270]
push edx
call fcn.10008320
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x12c], eax
lea edx, [ebp - 0x244]
push edx
call fcn.10008980
add esp, 4
test eax, eax
jbe 0x1000439e
lea eax, [ebp - 0x244]
push eax
call fcn.10008980
add esp, 4
cmp eax, 0x104
jae 0x1000439e
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
lea edx, [ebp - 0x378]
push edx
lea eax, [ebp - 0x128]
push eax
call fcn.10007fb0
add esp, 0xc
lea ecx, [ebp - 0x244]
push ecx
call fcn.10008980
add esp, 4
push eax
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x378]
push eax
call fcn.10008980
add esp, 4
lea ecx, [ebp + eax - 0x128]
push ecx
call fcn.10007fb0
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x140
push 0
lea eax, [ebp - 0x270]
push eax
call fcn.10008320
add esp, 0xc
lea ecx, [ebp - 0x270]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1000445e
lea eax, [ebp - 0x244]
push eax
call fcn.10008980
add esp, 4
test eax, eax
jbe 0x10004459
lea ecx, [ebp - 0x244]
push ecx
call fcn.10008980
add esp, 4
cmp eax, 0x104
jae 0x10004459
mov edx, dword [ebp - 8]
add edx, 1
push edx
lea eax, [ebp - 0x378]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.10007fb0
add esp, 0xc
lea edx, [ebp - 0x244]
push edx
call fcn.10008980
add esp, 4
push eax
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x378]
push ecx
call fcn.10008980
add esp, 4
lea edx, [ebp + eax - 0x128]
push edx
call fcn.10007fb0
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x100043b4
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x384], ecx
mov edx, dword [ebp - 0x384]
push edx
call fcn.10007fa3
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.10008311
mov esp, ebp
pop ebp
ret