Function at 0x10067880
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102e7998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], 0
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
je 0x1006790a
mov eax, dword fs:[0x18]
mov ecx, 4
imul edx, ecx, 0xd
mov dword [eax + edx], 0x423
push 0
mov ecx, dword [ebp + 8]
call fcn.10068680
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
jmp 0x10067bbc
mov ecx, dword [ebp - 0x44]
and ecx, 0xf0
jne 0x10067946
mov edx, dword fs:[0x18]
mov eax, 4
imul ecx, eax, 0xd
mov dword [edx + ecx], 0x425
push 0
mov ecx, dword [ebp + 8]
call fcn.10068680
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
jmp 0x10067bbc
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x4c]
sub ecx, eax
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 8
jge 0x1006798b
mov edx, dword fs:[0x18]
mov eax, 4
imul ecx, eax, 0xd
mov dword [edx + ecx], 0x427
push 0
mov ecx, dword [ebp + 8]
call fcn.10068680
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
jmp 0x10067bbc
push 0x40
call fcn.100a9677
add esp, 4
mov dword [ebp - 0x14], eax
xor eax, eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x38
mov dword [ecx], eax
mov dword [ecx + 4], eax
xor edx, edx
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
call fcn.1004f1f0
mov ecx, dword [ebp - 0x10]
or ecx, 2
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
call fcn.1004f1f0
mov edx, dword [ebp - 0x10]
or edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
jmp 0x100679fe
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10069e60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10068600
movzx edx, al
test edx, edx
je 0x10067b97
lea ecx, [ebp - 0x3c]
call fcn.10053f00
mov dword [eax + 0x38], 1
lea ecx, [ebp - 0x3c]
call fcn.10053f00
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
lea ecx, [ebp - 0x3c]
call fcn.10053f00
mov edx, dword [ebp + 0xc]
mov dword [eax + 8], edx
lea ecx, [ebp - 0x3c]
call fcn.10053f00
mov esi, dword [eax + 8]
lea ecx, [ebp - 0x3c]
call fcn.10053f00
mov ecx, dword [esi]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0x14], edx
lea ecx, [ebp - 0x3c]
call fcn.10053f00
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x10], 0xcc
jne 0x10067acc
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x14], 0
jne 0x10067acc
mov edx, dword fs:[0x18]
mov eax, 4
imul ecx, eax, 0xd
mov dword [edx + ecx], 0x432
push 0
mov ecx, dword [ebp + 8]
call fcn.10068680
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.1004bf60
mov eax, dword [ebp + 8]
jmp 0x10067bbc
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 5
lea ecx, [ebp - 0x3c]
call fcn.10053f00
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10067b2a
mov edx, dword fs:[0x18]
mov eax, 4
imul ecx, eax, 0xd
mov dword [edx + ecx], 0x460
push 0
mov ecx, dword [ebp + 8]
call fcn.10068680
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.1004bf60
mov eax, dword [ebp + 8]
jmp 0x10067bbc
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x3c]
push eax
call fcn.10054120
mov dword [ebp - 0x34], eax
call fcn.10067420
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10067b97
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x104e7160
call fcn.100685b0
mov ecx, eax
call fcn.100540e0
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10068630
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.1004bf60
mov eax, dword [ebp + 8]
jmp 0x10067bbc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.1004bf60
push 0
mov ecx, dword [ebp + 8]
call fcn.10068680
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret