Function at 0x1005412
Capabilities:
Access the windows event log
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
je 0x1005686
cmp dword [ebp + 0xc], 0
je 0x1005686
cmp dword [eax + 0x90], 0
je 0x1005686
mov eax, dword [eax + 0xa8]
test eax, eax
mov dword [ebp - 4], eax
jne 0x100568d
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 0xc]
call esi
mov edi, eax
lea eax, [edi + edi + 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x90]
call esi
lea eax, [edi + eax + 7]
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov ebx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x1005606
test ebx, ebx
je 0x1005606
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov word [eax], 0x22
add eax, 2
push eax
call esi
mov eax, dword [ebp - 8]
push 0x100198c
lea eax, [eax + edi*2 + 2]
push eax
call esi
cmp dword [ebp + 0x10], 0
mov eax, 0x1001988
jne 0x10054db
mov eax, 0x1001984
push eax
mov eax, dword [ebp - 8]
lea eax, [eax + edi*2 + 4]
push eax
call esi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x8001
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
mov word [ebp - 0x38], 4
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, dword [ebp + 8]
push dword [edi + 0x90]
mov dword [ebp + 0x10], eax
push ebx
call esi
push ebx
call fcn.01009e55
mov dword [esp], 0x1001978
push ebx
call fcn.01009def
test eax, eax
pop ecx
pop ecx
jne 0x1005556
push 0x100196c
push ebx
call fcn.01009def
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0xc], 0x28
je 0x100555d
mov dword [ebp + 0xc], 0x30
mov word [ebx], 0x22
push dword [edi + 0x90]
lea eax, [ebx + 2]
push eax
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 8]
mov word [ebx + eax*2], 0x22
lea eax, [ebx + eax*2 + 2]
mov word [eax], 0x20
add eax, 2
push eax
call esi
mov edi, dword [edi + 0x94]
xor esi, esi
cmp edi, esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push dword [ebp + 0xc]
push esi
push esi
push esi
push ebx
push esi
je 0x10055b4
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x10055ba
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp + 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp edi, esi
je 0x10055fb
cmp dword [ebp - 0x20], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], esi
je 0x10055e5
cmp dword [ebp - 0x20], 0xffffffff
je 0x10055e5
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x24], esi
je 0x100560d
cmp dword [ebp - 0x24], 0xffffffff
je 0x100560d
push dword [ebp - 0x24]
call edi
and dword [ebp - 0x24], 0
jmp 0x100560d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100560d
mov dword [ebp - 4], 0xe
cmp dword [ebp - 4], 0
pop edi
je 0x100565a
mov esi, dword [ebp + 8]
push dword [ebp - 4]
lea eax, [esi + 0xbc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
call fcn.010026b9
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 4
push 3
push 0
push 0x800007f7
push 0
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 4]
mov dword [esi + 0xa8], eax
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x1005674
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
test ebx, ebx
je 0x100568d
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
jmp 0x100568d
mov dword [ebp - 4], 0x57
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc