Function at 0x6bebb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
mov eax, dword [ebp - 8]
call fcn.0040a874
xor eax, eax
push ebp
push 0x6bee3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0xc]
call fcn.0040a790
mov eax, dword [ebp - 0xc]
add eax, 4
call fcn.0040a790
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
call fcn.0040b7f8
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetModuleHandleW_2
push eax
call fcn.00414f7c
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x6bee1f
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040ab70
mov eax, dword [ebp - 0xc]
add eax, 4
mov edx, dword [ebp - 8]
call fcn.0040ab70
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x25], 0
jmp 0x6bec89
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + 0x25]
add eax, edx
call fcn.006beb90
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x6bee1f
mov al, byte [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add byte [edx + 0x25], al
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x25], 5
jb 0x6bec5f
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x25]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x10
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_ReadProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x6bee1f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
add eax, 5
mov edx, dword [ebp + 8]
sub edx, eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x3b], 0xe9
mov eax, dword [ebp - 0xc]
add eax, 0x3c
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov ecx, 4
call fcn.00407394
mov eax, dword [ebp - 0xc]
add eax, 0x26
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x25]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.00407394
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x6bed8d
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov al, byte [eax + edx + 0x26]
add al, 0x18
sub al, 2
jb 0x6bed42
dec al
je 0x6bed72
jmp 0x6bed7b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx + 0x27]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
add edx, 0x26
sub eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx + 0x27], ecx
jmp 0x6bed7b
mov byte [ebp - 0xd], 0
jmp 0x6bee1f
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx + 0x26]
call fcn.006beb90
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x25]
cmp eax, dword [ebp - 0x14]
ja 0x6bed2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + 0x25]
add eax, edx
add eax, 5
mov edx, dword [ebp - 0xc]
add edx, 0x26
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + 0x25]
add edx, ecx
add edx, 5
add edx, 5
sub eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x25]
mov edx, dword [ebp - 0xc]
mov byte [edx + eax + 0x26], 0xe9
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x25]
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax + 0x27]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
mov ecx, 4
call fcn.00407394
lea eax, [ebp - 0x1c]
push eax
push 0x40
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x25]
add eax, 5
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x26
push eax
call sub.KERNEL32.DLL_VirtualProtect
mov eax, dword [ebp - 0xc]
mov dl, 1
call fcn.006beaa0
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6bee41
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a7f0
ret