Function at 0x10003230
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x1000e008]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
mov ebx, edx
mov eax, dword [ebp + 0x14]
mov edi, ecx
push 0x21c
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x208
mov word [esp + 0x2e], ax
test edi, edi
je 0x100032ab
mov ecx, 0x104
mov eax, edi
cmp word [eax], 0
je 0x10003296
add eax, 2
sub ecx, 1
jne 0x10003288
test ecx, ecx
je 0x100032ab
mov eax, 0x104
sub eax, ecx
add eax, eax
neg ecx
sbb ecx, ecx
and ecx, eax
jmp 0x100032ad
xor ecx, ecx
lea edx, [esp + 0x34]
mov esi, 0x104
mov eax, edx
sub edi, eax
nop word [eax + eax]
lea eax, [esi + 0x7ffffefa]
test eax, eax
je 0x100032de
movzx eax, word [edi + edx]
test ax, ax
je 0x100032de
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x100032c0
lea eax, [edx - 2]
test esi, esi
cmovne eax, edx
xor edx, edx
mov dword [esp + 0x18], edx
mov word [eax], dx
lea eax, [esp + 0x18]
push eax
mov word [esp + 0x30], cx
mov edx, str.ntdll.dll
push str.LdrLoadDll
mov ecx, ebx
call fcn.10001940
mov edx, eax
mov ecx, ebx
call fcn.10001a70
add esp, 8
test al, al
jne 0x10003340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.10008286
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov esi, 0x100034d0
push 0x40
sub esi, 0x10003490
mov dword [esp + 0x28], eax
push 0x3000
lea eax, [esi + 0x22c]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
lea eax, [edi + 0x22b]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
test edi, edi
jne 0x100033a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
lea eax, [edi + 0xd]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.10008286
mov esp, ebp
pop ebp
ret
push 0
push 0x21c
lea eax, [esp + 0x28]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x100033ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
push 0x8000
push 0
push edi
push ebx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.10008286
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0x10003490
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100033b9
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
shr eax, 5
push ecx
and al, 1
mov dword [esp + 0x24], 0
movzx eax, al
mov ecx, ebx
push eax
push esi
push edi
call fcn.100055d0
add esp, 0x14
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push 0
push 0x21c
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
cmp esi, 3
je 0x1000346c
push 0x8000
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [esp + 0x244]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10008286
mov esp, ebp
pop ebp
ret