Function at 0x100569b
Capabilities:
Access the windows event log
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x1012070]
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x444], esi
je 0x100597f
cmp edi, esi
je 0x100597f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
test eax, eax
jle 0x100597f
mov eax, dword [ebp + 0x10]
cmp eax, esi
jbe 0x100597f
mov ecx, eax
xor eax, eax
rep stosw word es:[edi], ax
lea eax, [ebp - 0x428]
push eax
push 0x20019
call fcn.010048d1
test eax, eax
je 0x100574f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push esi
push esi
push esi
push 0xc00007d3
push esi
push 1
push dword [0x1012b30]
mov dword [ebp - 0x420], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
jmp 0x100596b
push esi
mov eax, 0x105
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x428]
mov dword [ebp - 0x438], esi
mov word [ebp - 0x210], si
mov word [ebp - 0x41c], si
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1005977
mov edi, 0x104
lea eax, [ebp - 0x430]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov dword [ebp - 0x420], eax
jne 0x10058a6
push dword [ebp - 0x42c]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100581d
push dword [ebp - 0x42c]
call ebx
cmp dword [ebp + 0x10], eax
jbe 0x10058a6
push dword [ebp - 0x42c]
call ebx
inc eax
cmp eax, edi
jle 0x100591d
mov eax, edi
jmp 0x1005926
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
push 0x1001930
push dword [ebp - 0x430]
call fcn.01009601
cmp dword [ebp - 0x424], esi
mov dword [ebp - 0x420], eax
je 0x10058a6
push dword [ebp - 0x424]
call ebx
test eax, eax
jle 0x100587e
push dword [ebp - 0x42c]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100587e
lea eax, [ebp - 0x210]
push eax
call ebx
cmp dword [ebp + 0x10], eax
ja 0x100593b
cmp dword [ebp - 0x424], esi
je 0x100589a
push dword [ebp - 0x424]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x444], esi
cmp dword [ebp - 0x430], esi
je 0x10058c0
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x430], esi
inc dword [ebp - 0x438]
push esi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x438]
mov word [ebp - 0x210], si
push dword [ebp - 0x428]
mov dword [ebp - 0x43c], edi
mov word [ebp - 0x41c], si
mov dword [ebp - 0x434], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x10057af
jmp 0x1005977
push dword [ebp - 0x42c]
call ebx
inc eax
push eax
push dword [ebp - 0x42c]
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x1005989
lea eax, [ebp - 0x210]
push eax
call ebx
inc eax
cmp eax, edi
jle 0x100594d
mov eax, edi
jmp 0x1005957
lea eax, [ebp - 0x210]
push eax
call ebx
inc eax
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x420], 0x103
jne 0x1005989
mov dword [ebp - 0x420], esi
jmp 0x1005989
mov dword [ebp - 0x420], 0x57
cmp dword [ebp - 0x428], esi
pop edi
pop esi
pop ebx
je 0x10059a0
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x420]
call fcn.01009963
leave
ret 0xc