Function at 0x409304
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
pop esi
xor ebx, ebx
lea eax, [ebp - 0x9c]
mov edi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], bx
call fcn.004092d3
xor ecx, ecx
lea eax, [ebp - 0x60]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], bx
call fcn.0040e644
lea eax, [ebp - 0x9c]
call fcn.0040e638
test al, al
jne 0x409393
lea eax, [ebp - 0x60]
call fcn.0040e64d
push ebx
push 1
lea esi, [ebp - 0x20]
call fcn.00401432
lea edi, [ebp - 0x9c]
call fcn.0040e5c9
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00401432
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004327eb
leave
ret
lea eax, [ebp - 0x9c]
call fcn.0040e1f3
lea ecx, [ebp - 0x114]
push str.sfx.reg
push ecx
mov dword [ebp - 0xac], eax
call fcn.00401fdf
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
push ecx
xor ebx, ebx
call fcn.004016c9
push ebx
push 1
lea esi, [ebp - 0x114]
call fcn.00401432
push dword [ebp - 0xac]
call fcn.0040dbb9
pop ecx
push 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040e6ea
test al, al
je 0x409359
push ebx
push 2
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x60]
push eax
lea esi, [ebp - 0xa4]
mov byte [ebp - 0xa8], 0xff
mov byte [ebp - 0xa7], 0xfe
call fcn.0040e822
test al, al
je 0x409359
cmp dword [ebp - 0xa4], 2
jne 0x409359
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
jb 0x40943f
mov eax, dword [edi + 4]
jmp 0x409442
lea eax, [edi + 4]
push ebx
add ecx, ecx
push ecx
push eax
lea eax, [ebp - 0x60]
push eax
lea esi, [ebp - 0xa4]
call fcn.0040e822
test al, al
je 0x409359
mov eax, dword [edi + 0x14]
add eax, eax
cmp eax, dword [ebp - 0xa4]
lea eax, [ebp - 0x60]
je 0x4094a5
call fcn.0040e64d
mov byte [ebp - 0x9d], bl
push ebx
push 1
lea esi, [ebp - 0x20]
call fcn.00401432
lea edi, [ebp - 0x9c]
call fcn.0040e5c9
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00401432
mov al, byte [ebp - 0x9d]
jmp 0x409384
call fcn.0040e64d
mov eax, 0x444364
lea esi, [ebp - 0x20]
call fcn.00401318
mov esi, 0x443ef0
push esi
lea eax, [ebp - 0x20]
push eax
call fcn.00402048
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x4094d2
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402048
push esi
lea eax, [ebp - 0x20]
push eax
call fcn.00402048
push str.Kernel32.dll
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb0], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0xa4], edi
je 0x409581
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x444388
push edi
mov dword [ebp - 0xb4], ebx
call esi
push str.IsWow64Process
push edi
mov dword [ebp - 0xac], eax
call esi
mov edi, eax
cmp edi, ebx
je 0x409553
cmp dword [ebp - 0xac], ebx
je 0x409553
lea eax, [ebp - 0xb4]
push eax
call dword [ebp - 0xac]
push eax
call edi
test eax, eax
jne 0x409553
mov dword [ebp - 0xb4], ebx
cmp dword [ebp - 0xb4], ebx
je 0x409581
push str.Wow64DisableWow64FsRedirection
push dword [ebp - 0xa4]
call esi
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 0xa4]
mov dword [ebp - 0xb8], eax
call esi
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb8], ebx
mov byte [ebp - 0x9e], bl
mov dword [ebp - 0xbc], ebx
je 0x4095b5
cmp dword [ebp - 0xb0], ebx
je 0x4095b5
lea eax, [ebp - 0xbc]
push eax
call dword [ebp - 0xb8]
test eax, eax
je 0x4095b5
mov byte [ebp - 0x9e], 1
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xf8]
push ebx
push eax
call fcn.00432b90
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 8
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xf4], 0x140
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe8], str.regedit.exe
mov dword [ebp - 0xe0], ebx
jae 0x409601
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xf8]
push eax
mov dword [ebp - 0xdc], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [ebp - 0x9d]
cmp byte [ebp - 0x9d], bl
je 0x409651
cmp dword [ebp - 0xc0], ebx
je 0x409651
push 0xffffffffffffffff
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x9e], bl
je 0x40966d
cmp dword [ebp - 0xb0], ebx
je 0x40966d
push dword [ebp - 0xbc]
call dword [ebp - 0xb0]
cmp dword [ebp - 0xa4], ebx
je 0x409681
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x9d]
mov byte [ebp - 0x9d], al
jmp 0x409479