Function at 0x49609d
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 0x4960e1
lea esi, [esp + 0x60]
mov dl, byte [0x4d6835]
cmp dl, 4
jne 0x4960fe
mov eax, dword [ebp + 0xc]
add eax, 0x34
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x3c], ebx
jmp 0x496111
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 [0x4d683e]
lea eax, [esp + eax + 0x70]
mov dword [esp + 0x2c], ebx
movzx ebx, byte [0x4d683f]
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 0x496153
mov dword [ebx + 4], ecx
mov ebx, dword [ebp + 0x3c]
mov ax, word [ebx]
cmp ax, 0x3e
jne 0x496161
inc ebx
inc ebx
cmp byte [0x4d6835], 8
jne 0x49619b
cmp ax, 0x3e
jne 0x49619b
cmp word [ebx], 0
je 0x49619b
push 0x14000
lea ecx, [esp + 0x28]
call fcn.004441bf
push dword [esp + 0x24]
push edi
push ebx
call fcn.00495e8c
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.0043dd41
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.00495fad
add esp, 0x30
cmp byte [0x4d6835], 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
jne 0x4961ea
mov eax, dword [eax]
and dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
jmp 0x4961f7
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 0x49620a
mov dword [esi], eax
cmp dword [esi + 4], 0xffffffff
jne 0x496213
mov dword [esi + 4], eax
cmp dword [esp + 0x44], eax
jle 0x4964c9
mov dl, byte [0x4d6835]
cmp dl, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], eax
jne 0x49627d
cmp dword [esp + 0x38], ecx
jne 0x49627d
mov edi, dword [esp + 0x3c]
cmp edi, dword [esp + 0x2c]
jne 0x49627d
mov edi, dword [esp + 0x4c]
cmp edi, eax
jb 0x49627d
mov eax, dword [esp + 0x48]
ja 0x49625b
cmp eax, dword [ebp + 0x1c]
jb 0x49627d
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 0x496395
cmp dword [0x4d8d84], 0
je 0x4964a1
cmp dl, 4
mov edi, 0x3000
jne 0x4962d4
push dword [esp + 0x2c]
push ecx
push dword [esi]
call fcn.00495e4a
add esp, 0xc
test eax, eax
je 0x4962c2
push 0x40
push edi
push dword [ebp + 0x1c]
push dword [esp + 0x44]
push dword [esi]
call dword [0x4d8d84]
cdq
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
jne 0x4963a3
mov ecx, dword [esp + 0x28]
push dword [ebp + 0xc]
call fcn.00495d59
add esp, 4
test eax, eax
je 0x4964a1
cmp byte [0x4d6835], 4
jne 0x496303
push 0x40
push edi
push dword [ebp + 0x1c]
push 0
push dword [esi]
call dword [0x4d8d84]
cdq
jmp 0x496370
push dword [esp + 0x2c]
push ecx
push dword [esi]
call fcn.00495e4a
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 [0x4d8d84]
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 0x4964a1
push edx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.00495d91
add esp, 0x14
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
je 0x4964a1
and dword [esp + 0x24], 0
cmp byte [0x4d6835], 4
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jne 0x4963e5
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 [0x4d6835], 4
jne 0x4963e5
mov eax, dword [esp + 0x34]
jmp 0x4963f0
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 0x49649a
mov cl, byte [0x4d6835]
cmp cl, 4
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jne 0x49643f
cmp edi, dword [esp + 0x28]
jne 0x49643f
cmp edx, dword [esp + 0x2c]
jne 0x49643f
xor eax, eax
add ebx, dword [esp + 0x38]
adc eax, dword [esp + 0x3c]
mov edx, ebx
mov dword [esp + 0x4c], eax
jmp 0x49644c
xor eax, eax
add ebx, edi
adc eax, edx
cmp cl, 4
mov edx, ebx
jne 0x496454
mov eax, dword [esp + 0x54]
mov dword [eax], edx
jmp 0x49645d
mov ecx, dword [esp + 0x54]
mov dword [ecx], edx
mov dword [ecx + 4], eax
cmp byte [0x4d6835], 4
jne 0x496474
lea eax, [esp + 0x70]
push eax
push dword [esi + 4]
call dword [0x4d8d80]
test byte [ebp + 0x24], 4
jne 0x496483
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp + 0x38], 0
jne 0x4964c9
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi]
call edi
jmp 0x4964c9
or dword [esp + 0x44], 0xffffffff
jmp 0x4964a9
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