Function at 0x10009d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
jmp 0x10009d60
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x14]
jne 0x10009d79
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
je 0x1000a29d
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jmp 0x10009d90
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x14]
je 0x10009dac
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x28], 0
je 0x10009daa
mov dword [ebp - 0x10], 1
jmp 0x10009dac
jmp 0x10009d88
cmp dword [ebp - 0x10], 0
jne 0x10009dbd
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
jmp 0x10009dcd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x14]
je 0x1000a290
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x28], 0
je 0x10009ded
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
jmp 0x1000a290
mov edx, dword [ebp + 0x18]
sub edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
cmp edx, dword [ebp + 0x1c]
jbe 0x10009e05
xor eax, eax
jmp 0x1000a2ad
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x24], 0
je 0x10009fec
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
cdq
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
xor edx, edx
add esi, ecx
adc edi, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x18]
push eax
call fcn.10009c40
add esi, eax
adc edi, edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x18]
cdq
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0xc]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 8]
sub ecx, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.1000a2c0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x1c]
jne 0x10009ee4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x18]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
add ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0x14]
mov eax, dword [ebp - 0x14]
add ecx, dword [eax + 0x18]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
add edx, dword [ecx + 0xc]
mov dword [ebp + 0x18], edx
jmp 0x10009fe7
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov cl, byte [ecx + eax]
mov byte [ebp - 0x34], cl
cmp byte [ebp - 0x34], 0xe8
je 0x10009f11
cmp byte [ebp - 0x34], 0xe9
je 0x10009fa0
cmp byte [ebp - 0x34], 0xeb
je 0x10009f78
jmp 0x10009fe7
mov edx, dword [ebp + 0x18]
mov byte [edx], 0xff
mov eax, dword [ebp + 0x18]
add eax, 1
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 0x15
mov edx, dword [ebp + 0x18]
add edx, 1
mov dword [ebp + 0x18], edx
mov eax, dword [ebp + 0x18]
mov dword [eax], 2
mov ecx, dword [ebp + 0x18]
add ecx, 4
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp + 0x18]
mov byte [edx], 0xeb
mov eax, dword [ebp + 0x18]
add eax, 1
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 8
mov edx, dword [ebp + 0x18]
add edx, 1
mov dword [ebp + 0x18], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x18]
add eax, 8
mov dword [ebp + 0x18], eax
jmp 0x10009fe7
cmp dword [ebp - 0x1c], 4
jne 0x10009fa0
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 0xe9
mov edx, dword [ebp + 0x18]
add edx, 1
mov dword [ebp + 0x18], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edx, dword [ebp + 0x18]
add edx, 4
mov dword [ebp + 0x18], edx
jmp 0x10009fe7
mov eax, dword [ebp + 0x18]
mov byte [eax], 0xff
mov ecx, dword [ebp + 0x18]
add ecx, 1
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp + 0x18]
mov byte [edx], 0x25
mov eax, dword [ebp + 0x18]
add eax, 1
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov edx, dword [ebp + 0x18]
add edx, 4
mov dword [ebp + 0x18], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x18]
add eax, 8
mov dword [ebp + 0x18], eax
jmp 0x1000a206
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x20], 0
je 0x1000a1e0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
cdq
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
xor edx, edx
add esi, ecx
adc edi, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x14]
lea edx, [eax + ecx + 1]
push edx
call fcn.10009c40
add esi, eax
adc edi, edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x18]
cdq
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0xc]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 8]
sub ecx, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.1000a2c0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
ja 0x1000a0cd
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x18]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
add ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x14]
lea ecx, [ecx + eax + 1]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x18]
add eax, dword [edx + 0xc]
mov dword [ebp + 0x18], eax
jmp 0x1000a1de
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x14]
mov cl, byte [edx + eax]
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp + 0x18]
mov byte [edx], 0x48
mov eax, dword [ebp + 0x18]
add eax, 1
mov dword [ebp + 0x18], eax
movzx ecx, byte [ebp - 0x1d]
and ecx, 0x38
sar ecx, 3
add ecx, 0xb8
mov edx, dword [ebp + 0x18]
mov byte [edx], cl
mov eax, dword [ebp + 0x18]
add eax, 1
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x18]
add ecx, 8
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x18]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
add edx, dword [ecx + 0x10]
mov dword [ebp + 0x18], edx
mov eax, dword [ebp + 0x18]
mov byte [eax], 0x8b
mov ecx, dword [ebp + 0x18]
add ecx, 1
mov dword [ebp + 0x18], ecx
movzx edx, byte [ebp - 0x1d]
and edx, 0x38
sar edx, 3
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 4
je 0x1000a179
cmp dword [ebp - 0x38], 5
je 0x1000a199
jmp 0x1000a1b9
mov eax, dword [ebp + 0x18]
mov byte [eax], 0x24
mov ecx, dword [ebp + 0x18]
add ecx, 1
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp + 0x18]
mov byte [edx], 0x24
mov eax, dword [ebp + 0x18]
add eax, 1
mov dword [ebp + 0x18], eax
jmp 0x1000a1de
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 0x6d
mov edx, dword [ebp + 0x18]
add edx, 1
mov dword [ebp + 0x18], edx
mov eax, dword [ebp + 0x18]
mov byte [eax], 0
mov ecx, dword [ebp + 0x18]
add ecx, 1
mov dword [ebp + 0x18], ecx
jmp 0x1000a1de
movzx edx, byte [ebp - 0x1d]
and edx, 0x38
sar edx, 3
movzx eax, byte [ebp - 0x1d]
and eax, 0x38
sar eax, 3
lea ecx, [eax + edx*8]
mov edx, dword [ebp + 0x18]
mov byte [edx], cl
mov eax, dword [ebp + 0x18]
add eax, 1
mov dword [ebp + 0x18], eax
jmp 0x1000a206
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
add ecx, dword [eax + 0xc]
mov dword [ebp + 0x18], ecx
cmp dword [ebp - 0x10], 0
je 0x1000a27a
lea edx, [ebp - 0x30]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
push 0x90
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
jmp 0x1000a28b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0xc]
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
jmp 0x10009dc5
cmp dword [ebp - 0x10], 0
jne 0x1000a298
jmp 0x1000a29d
jmp 0x10009d58
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 0x20]
mov dword [edx], ecx
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x24