Function at 0x10008295
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 8
call fcn.1001978b
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10008307
push 0x19
push 0x401984d
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10008345
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10008342
push 0x83
push 0x401984d
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000858d
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10008380
push 0xef
push 0x401984d
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000858d
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0xc]
push eax
push 0x40
push 7
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x100083c7
push 0x147
push 0x401984d
push 6
call fcn.1001977f
add esp, 0xc
push 0x80000301
push 0
push 7
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0x910
call fcn.10019eb0
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10008406
push ebx
call fcn.10019791
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 7
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10008442
push 0x1b7
push 0x401984d
push 6
call fcn.1001977f
add esp, 0xc
mov eax, 0x10049ea8
xor ecx, ecx
test eax, eax
je 0x10008450
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
xor ebx, ebx
test eax, eax
je 0x10008461
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x10008478
dec eax
test ecx, ecx
je 0x10008478
call fcn.100081e9
add esp, 0xc
test eax, eax
je 0x10008507
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100084b4
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1001978b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100084c7
push ebx
call fcn.10019791
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
push eax
push 8
call fcn.1001978b
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x100084fe
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1001978b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
jmp 0x10008614
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov eax, 0x10049ea8
test eax, eax
je 0x1000853a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1001978b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000854d
push ebx
call fcn.10019791
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
push eax
push 8
call fcn.1001978b
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10008584
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1001978b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
jmp 0x10008614
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov eax, 0x10049ea8
test eax, eax
je 0x100085c1
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1001978b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100085d4
push ebx
call fcn.10019791
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
push eax
push 8
call fcn.1001978b
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x1000860b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1001978b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
jmp 0x10008614
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10008625
push ebx
call fcn.10019791
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000863c
push ebx
call fcn.10019791
add esp, 4
pop ebx
call fcn.10019791
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8