Function at 0x498b5c
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 0x498ba0
lea esi, [esp + 0x60]
mov dl, byte [0x4d9835]
cmp dl, 4
jne 0x498bbd
mov eax, dword [ebp + 0xc]
add eax, 0x34
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x3c], ebx
jmp 0x498bd0
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 [0x4d983e]
lea eax, [esp + eax + 0x70]
mov dword [esp + 0x2c], ebx
movzx ebx, byte [0x4d983f]
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 0x498c12
mov dword [ebx + 4], ecx
mov ebx, dword [ebp + 0x3c]
mov ax, word [ebx]
cmp ax, 0x3e
jne 0x498c20
inc ebx
inc ebx
cmp byte [0x4d9835], 8
jne 0x498c5a
cmp ax, 0x3e
jne 0x498c5a
cmp word [ebx], 0
je 0x498c5a
push 0x14000
lea ecx, [esp + 0x28]
call fcn.00444a2e
push dword [esp + 0x24]
push edi
push ebx
call fcn.0049894b
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.0043e48d
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.00498a6c
add esp, 0x30
cmp byte [0x4d9835], 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
jne 0x498ca9
mov eax, dword [eax]
and dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
jmp 0x498cb6
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 0x498cc9
mov dword [esi], eax
cmp dword [esi + 4], 0xffffffff
jne 0x498cd2
mov dword [esi + 4], eax
cmp dword [esp + 0x44], eax
jle 0x498f88
mov dl, byte [0x4d9835]
cmp dl, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], eax
jne 0x498d3c
cmp dword [esp + 0x38], ecx
jne 0x498d3c
mov edi, dword [esp + 0x3c]
cmp edi, dword [esp + 0x2c]
jne 0x498d3c
mov edi, dword [esp + 0x4c]
cmp edi, eax
jb 0x498d3c
mov eax, dword [esp + 0x48]
ja 0x498d1a
cmp eax, dword [ebp + 0x1c]
jb 0x498d3c
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 0x498e54
cmp dword [0x4dbd94], 0
je 0x498f60
cmp dl, 4
mov edi, 0x3000
jne 0x498d93
push dword [esp + 0x2c]
push ecx
push dword [esi]
call fcn.00498909
add esp, 0xc
test eax, eax
je 0x498d81
push 0x40
push edi
push dword [ebp + 0x1c]
push dword [esp + 0x44]
push dword [esi]
call dword [0x4dbd94]
cdq
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
jne 0x498e62
mov ecx, dword [esp + 0x28]
push dword [ebp + 0xc]
call fcn.00498818
add esp, 4
test eax, eax
je 0x498f60
cmp byte [0x4d9835], 4
jne 0x498dc2
push 0x40
push edi
push dword [ebp + 0x1c]
push 0
push dword [esi]
call dword [0x4dbd94]
cdq
jmp 0x498e2f
push dword [esp + 0x2c]
push ecx
push dword [esi]
call fcn.00498909
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 [0x4dbd94]
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 0x498f60
push edx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.00498850
add esp, 0x14
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
je 0x498f60
and dword [esp + 0x24], 0
cmp byte [0x4d9835], 4
mov edi, dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
jne 0x498ea4
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 [0x4d9835], 4
jne 0x498ea4
mov eax, dword [esp + 0x34]
jmp 0x498eaf
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 0x498f59
mov cl, byte [0x4d9835]
cmp cl, 4
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jne 0x498efe
cmp edi, dword [esp + 0x28]
jne 0x498efe
cmp edx, dword [esp + 0x2c]
jne 0x498efe
xor eax, eax
add ebx, dword [esp + 0x38]
adc eax, dword [esp + 0x3c]
mov edx, ebx
mov dword [esp + 0x4c], eax
jmp 0x498f0b
xor eax, eax
add ebx, edi
adc eax, edx
cmp cl, 4
mov edx, ebx
jne 0x498f13
mov eax, dword [esp + 0x54]
mov dword [eax], edx
jmp 0x498f1c
mov ecx, dword [esp + 0x54]
mov dword [ecx], edx
mov dword [ecx + 4], eax
cmp byte [0x4d9835], 4
jne 0x498f33
lea eax, [esp + 0x70]
push eax
push dword [esi + 4]
call dword [0x4dbd90]
test byte [ebp + 0x24], 4
jne 0x498f42
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp dword [ebp + 0x38], 0
jne 0x498f88
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push dword [esi]
call edi
jmp 0x498f88
or dword [esp + 0x44], 0xffffffff
jmp 0x498f68
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