Function at 0x1033c91
Capabilities:
Enumerate files on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x10372b8]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1002fa4
push eax
mov edi, 0x10027e4
push edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
mov dword [ebp - 0x870], ecx
call fcn.0100d7d2
xor ebx, ebx
add esp, 0x14
cmp eax, ebx
jl 0x1033ed1
push 0x10044c4
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0100d7d2
add esp, 0x14
cmp eax, ebx
jl 0x1033ed1
push 0x10
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1033d1d
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], 1
jmp 0x1033d1f
xor eax, eax
cmp eax, ebx
mov esi, dword [ebp - 0x870]
mov dword [esi + 0x30], eax
jne 0x1033d36
mov eax, 0x8007000e
jmp 0x1033ed1
lea eax, [ebp - 0x874]
push eax
push 1
push ebx
push 0x10036d8
push 0x80000001
mov word [ebp - 0x414], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1033dac
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x87c]
push eax
push ebx
push 0x10035c8
push dword [ebp - 0x874]
mov dword [ebp - 0x880], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1033d99
cmp dword [ebp - 0x87c], 1
je 0x1033da0
mov word [ebp - 0x414], bx
push dword [ebp - 0x874]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x878], eax
je 0x1033ec2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x1033def
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov edi, eax
jmp 0x1033df1
xor edi, edi
cmp edi, ecx
je 0x1033e93
lea eax, [ebp - 0x840]
push eax
call ebx
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea esi, [esi + eax + 1]
lea eax, [esi + esi]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [edi], eax
je 0x1033e8a
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
call fcn.01007bfb
test eax, eax
jl 0x1033ed1
lea eax, [ebp - 0x840]
push eax
push esi
push dword [edi]
call fcn.01007cc3
test eax, eax
jl 0x1033ed1
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
push edi
jne 0x1033e7a
mov esi, dword [ebp - 0x870]
mov ecx, dword [esi + 0x30]
call fcn.0100d75b
mov dword [esi + 0x2c], eax
jmp 0x1033e93
mov eax, dword [ebp - 0x870]
mov ecx, dword [eax + 0x30]
call fcn.0100d75b
jmp 0x1033e93
push 1
mov ecx, edi
call fcn.0100d5cd
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x878]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1033dd5
push dword [ebp - 0x878]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x870]
xor ebx, ebx
cmp dword [esi + 0x2c], ebx
jne 0x1033ecf
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
mov dword [esi + 0x2c], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01034a90
leave
ret 4