Function at 0x100125c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
push ebx
push esi
push edi
lea edi, [ebp - 0x544]
mov ecx, 0x151
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101ca9c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x3b4], 0
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.1000241e
test eax, eax
je 0x100127a1
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
cmp ecx, dword [ebp - 0x24]
jne 0x10012674
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x14]
jb 0x10012674
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x48], eax
mov esi, esp
lea eax, [ebp - 0x334]
push eax
push 0x40
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp esi, esp
call fcn.1000318e
cmp dword [ebp - 0x48], 0
je 0x100127a1
mov dword [ebp - 0x31c], 0x10007
mov esi, esp
lea eax, [ebp - 0x31c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
cmp esi, esp
call fcn.1000318e
test eax, eax
je 0x100127a1
mov esi, esp
lea eax, [ebp - 0x334]
push eax
push 4
lea ecx, [ebp - 0x328]
push ecx
mov edx, dword [ebp - 0x278]
add edx, 8
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp esi, esp
call fcn.1000318e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x34], ecx
push 2
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.1000272f
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.1000318e
test eax, eax
je 0x100127a1
mov byte [ebp - 0x3bd], 0x4d
mov esi, esp
lea eax, [ebp - 0x334]
push eax
push 1
lea ecx, [ebp - 0x3bd]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.1000318e
mov byte [ebp - 0x3bd], 0x5a
mov esi, esp
lea eax, [ebp - 0x334]
push eax
push 1
lea ecx, [ebp - 0x3bd]
push ecx
mov edx, dword [ebp - 0x48]
add edx, 1
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0x31c], 0x10007
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x26c], ecx
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x26c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x100127d8]
call fcn.10004b97
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004d22
add esp, 0x544
cmp ebp, esp
call fcn.1000318e
mov esp, ebp
pop ebp
ret 0x1c