Function at 0x100048f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Patch process command line

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push 0x10037b94
push 0x10037bb0
mov dword [ebp - 0x18], ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x10004b32
push str.RtlEnterCriticalSection
push 0x10037bb0
call esi
push eax
call edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10004b32
push str.RtlLeaveCriticalSection
push 0x10037bb0
call esi
push eax
call edi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10004b32
push str.RtlInitUnicodeString
push 0x10037bb0
call esi
push eax
call edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10004b32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004b32
push 0
push 0x18
lea eax, [ebp - 0x38]
push eax
push 0
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 4]
push 0
push 4
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call edi
test eax, eax
je 0x10004b32
push 0
push 4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push esi
call edi
test eax, eax
je 0x10004b32
push 0x40
push 0x1000
push 0x104
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x104
mov ebx, eax
push 0
push ebx
call fcn.1000f750
mov ecx, dword [ebp - 0x18]
mov edx, ebx
add esp, 0xc
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10004a02
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
call dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push ebx
mov eax, dword [eax + 0x10]
add eax, 0x38
push eax
call dword [ebp - 0xc]
mov eax, dword [ebp - 4]
push ebx
mov eax, dword [eax + 0x10]
add eax, 0x40
push eax
call dword [ebp - 0xc]
push 0x208
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.1000f750
push 0x208
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.1000f750
add esp, 0x18
lea eax, [ebp - 0x448]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
nop dword [eax]
push 0
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call edi
test eax, eax
je 0x10004b32
mov ecx, dword [ebp - 8]
push 0
movzx eax, word [ecx + 0x26]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ecx + 0x28]
push esi
call edi
test eax, eax
je 0x10004b32
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.10016200
add esp, 8
test eax, eax
mov eax, dword [ebp - 8]
je 0x10004aeb
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x10]
jne 0x10004a90
jmp 0x10004aff
mov edi, dword [ebp - 0xc]
add eax, 0x24
push ebx
push eax
call edi
mov eax, dword [ebp - 8]
push ebx
add eax, 0x2c
push eax
call edi
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
call dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x240]
push eax
push ecx
call fcn.10016200
add esp, 8
test eax, eax
je 0x10004b32
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret