Function at 0x4f05c0
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541b22
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x583384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x118]
push 0x40
push 0
push eax
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0x11c], 0x44
call fcn.00517590
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0xd8], xmm0
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4f0633
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xac], edi
mov dword [ebp - 4], 0
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4f065d
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xa4], esi
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 2
test ebx, ebx
jne 0x4f069e
mov dword [ebp - 0xb0], 0x80004003
jmp 0x4f0c8e
push ebx
call fcn.004edaf0
add esp, 4
test eax, eax
jne 0x4f06ba
mov dword [ebp - 0xb0], 0x80004004
jmp 0x4f0c8e
push 0
push str.RegEdit_RegEdit
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
push ebx
mov dword [ebp - 0x98], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4f0739
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.regedit.exe
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4f070f
mov ebx, 0x80004005
jmp 0x4f0c94
mov ebx, dword [ebp - 0xd8]
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0
push str.RegEdit_RegEdit
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x98], eax
jmp 0x4f0773
lea eax, [ebp - 0xc8]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0xc8]
push 0
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x9c], ebx
test ebx, ebx
jne 0x4f076d
mov ebx, 0x80004005
jmp 0x4f0c94
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x4f0781
mov ebx, 0x80004005
jmp 0x4f0c94
push 0
push 0x549a18
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
push eax
mov dword [ebp - 0xa0], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4f07ac
mov ebx, 0x80004005
jmp 0x4f0c94
push 0
push str.SysListView32
push 0
push dword [ebp - 0x98]
call dword [sym.imp.USER32.dll_FindWindowExA]
push eax
mov dword [ebp - 0xa8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4f07dc
mov ebx, 0x80004005
jmp 0x4f0c94
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0xa
push dword [ebp - 0x98]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xa0]
call dword [sym.imp.USER32.dll_SetFocus]
push 0x40
push 0x3000
push 0x1000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov dword [ebp - 0x98], ebx
test ebx, ebx
jne 0x4f084f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x9c]
call ebx
mov ebx, 0x80004005
jmp 0x4f0c94
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xac]
call fcn.00423d10
push 0x1000
lea ecx, [ebp - 0x94]
call fcn.004ec160
push 0x1000
push 0
push dword [ebp - 0x94]
call fcn.00517590
mov ecx, dword [ebp - 0x94]
lea eax, [ebx + 0x28]
add esp, 0xc
mov dword [ebp - 0xc4], ecx
mov dword [ecx], 1
push 0
push 0
push 0x110a
push dword [ebp - 0xa0]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xfd8
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
lea ecx, [ebp - 0xac]
lea eax, [ebp - 0xbc]
push eax
push 0x547a38
lea eax, [ebp - 0xb8]
push eax
call fcn.004f0f20
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.00413fa0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.00406240
mov esi, dword [ebp - 0xa4]
mov edi, dword [ebp - 0xac]
cmp dword [esi - 0xc], 0
je 0x4f0c5e
nop
push ebx
push 4
push 0x110a
push dword [ebp - 0xa0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
test ebx, ebx
je 0x4f09dd
nop
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc0]
push ecx
push 0x28
push eax
push dword [ebp - 0x98]
mov dword [eax + 4], ebx
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4f0930
push dword [ebp - 0x98]
push 0
push 0x110c
push dword [ebp - 0xa0]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4f09dd
lea eax, [ebp - 0xc0]
push eax
push 0x1000
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4f09dd
mov eax, dword [ebp - 0x94]
add eax, 0x28
je 0x4f0629
push eax
push esi
call fcn.0052747d
add esp, 8
push ebx
test eax, eax
je 0x4f0b96
push 1
push 0x110a
push dword [ebp - 0xa0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
test ebx, ebx
jne 0x4f0930
mov eax, dword [edi - 0xc]
lea ecx, [ebp - 0xac]
sub eax, dword [ebp - 0xb4]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0041f000
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.00413fa0
lea ecx, [ebp - 0xc4]
call fcn.00406240
mov ebx, dword [ebp - 0x9c]
mov esi, dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0xffffffffffffffff
push ebx
call esi
push dword [ebp - 0xa8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0xffffffffffffffff
push ebx
call esi
push dword [ebp - 0xa8]
call dword [sym.imp.USER32.dll_SetFocus]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1000
push 0
push dword [ebp - 0x94]
call fcn.00517590
mov ecx, dword [ebp - 0x94]
mov esi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x98]
add eax, 0x18
mov dword [ecx + 4], eax
mov dword [ecx], 0xa
mov eax, dword [esi - 0xc]
mov ecx, dword [ebp - 0x94]
inc eax
push eax
add ecx, 0x18
push esi
push ecx
call fcn.00517010
add esp, 0x18
lea eax, [ebp - 0xc0]
push eax
push 0x1000
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4f0c64
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0
push 0
push 0x1004
push dword [ebp - 0xa8]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x98]
push 0
push 0x100d
push dword [ebp - 0xa8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0xb4], eax
test eax, eax
js 0x4f0c64
push 0x1000
push 0
push dword [ebp - 0x94]
call fcn.00517590
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0xc0]
add esp, 0xc
mov dword [eax + 0x10], 3
push ecx
push 0x3c
push eax
push dword [ebp - 0x98]
mov dword [eax + 0xc], 3
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push dword [ebp - 0x98]
push dword [ebp - 0xb4]
push 0x102b
push dword [ebp - 0xa8]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4f0d06
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0
push dword [ebp - 0xb4]
push 0x1013
push dword [ebp - 0xa8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4f0c64
push 2
push 0x1102
push dword [ebp - 0xa0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebp - 0x9c]
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push ebx
push 9
push 0x110b
push dword [ebp - 0xa0]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push ebx
push 0
push 0x1114
push dword [ebp - 0xa0]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xbc]
push eax
push 0x547a38
lea eax, [ebp - 0xb8]
push eax
call fcn.004f0f20
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.00413fa0
mov edx, dword [ebp - 0xb8]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f0c4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xa4]
cmp dword [esi - 0xc], 0
jne 0x4f0910
mov ebx, dword [ebp - 0x9c]
push 0x8000
push 0
push dword [ebp - 0x98]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0xd4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x9c]
call ebx
mov ebx, dword [ebp - 0xb0]
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x4f0cad
lea ecx, [ebp - 0x94]
call fcn.0040f2a0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4f0cc9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4f0ce8
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513512
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xb0], 0x80004005
jmp 0x4f0c64