Function at 0x10008100
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
lea eax, [ebp - 0xe4]
push eax
push 0x40
push 0x10
push 0xe63294
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10008b50
cmp dword [ebp + 8], 0
jle 0x10008a52
mov ecx, dword [ebp + 8]
lea edx, [ecx*4 + 0xe63293]
mov dword [ebp - 0x50], edx
push 1
mov eax, dword [ebp - 0x50]
push eax
call fcn.10003a80
test eax, eax
jne 0x10008237
mov dword [ebp - 0x94], 0
push 1
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.10003990
test eax, eax
jne 0x100081a3
lea edx, [ebp - 0x94]
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0x2c], 0
jmp 0x10008188
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x100081a3
mov ecx, dword [ebp - 0xbc]
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x2c]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x1000817f
cmp dword [ebp - 0x94], 0
je 0x10008237
mov dword [ebp - 0xc], 0
xor ecx, ecx
and ecx, 0xff
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x54], cl
xor ecx, ecx
shr ecx, 8
and ecx, 0xff
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0x54], cl
xor eax, eax
shr eax, 0x10
and eax, 0xff
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x54], al
xor edx, edx
shr edx, 0x18
and edx, 0xff
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x54], dl
mov dword [ebp - 0xc], 0
jmp 0x10008220
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 1
jge 0x10008237
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp + ecx - 0x54]
mov byte [eax], dl
jmp 0x10008217
mov dword [ebp - 4], 1
jmp 0x10008249
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jae 0x10008a4d
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x1000847f
mov edx, dword [ebp - 4]
lea eax, [edx*4 + 0xe63290]
mov dword [ebp - 0x58], eax
push 1
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.10003a80
test eax, eax
jne 0x10008374
mov dword [ebp - 0x98], 0
push 1
mov edx, dword [ebp - 0x58]
push edx
call fcn.10003990
test eax, eax
jne 0x100082d1
lea eax, [ebp - 0x98]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x30], 0
jmp 0x100082b6
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 1
jge 0x100082d1
mov edx, dword [ebp - 0xc0]
add edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [edx], cl
jmp 0x100082ad
cmp dword [ebp - 0x98], 0xff
je 0x10008374
mov dword [ebp - 0x10], 0
mov edx, 0xff
and edx, 0xff
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x5c], dl
mov edx, 0xff
shr edx, 8
and edx, 0xff
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x5c], dl
mov ecx, 0xff
shr ecx, 0x10
and ecx, 0xff
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x5c], cl
mov eax, 0xff
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x5c], al
mov dword [ebp - 0x10], 0
jmp 0x1000835d
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x10008374
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov al, byte [ebp + edx - 0x5c]
mov byte [ecx], al
jmp 0x10008354
mov ecx, dword [ebp - 4]
lea edx, [ecx*4 + 0xe63293]
mov dword [ebp - 0x60], edx
push 1
mov eax, dword [ebp - 0x60]
push eax
call fcn.10003a80
test eax, eax
jne 0x1000847a
mov dword [ebp - 0x9c], 0
push 1
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.10003990
test eax, eax
jne 0x100083e6
lea edx, [ebp - 0x9c]
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0x34], 0
jmp 0x100083cb
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jge 0x100083e6
mov ecx, dword [ebp - 0xc4]
add ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x34]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x100083c2
cmp dword [ebp - 0x9c], 0
je 0x1000847a
mov dword [ebp - 0x14], 0
xor ecx, ecx
and ecx, 0xff
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x64], cl
xor ecx, ecx
shr ecx, 8
and ecx, 0xff
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0x64], cl
xor eax, eax
shr eax, 0x10
and eax, 0xff
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x64], al
xor edx, edx
shr edx, 0x18
and edx, 0xff
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x64], dl
mov dword [ebp - 0x14], 0
jmp 0x10008463
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 1
jge 0x1000847a
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp + ecx - 0x64]
mov byte [eax], dl
jmp 0x1000845a
jmp 0x10008a48
mov eax, dword [ebp - 4]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
sub ecx, 1
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x68], 3
ja case.default.0x1000849b
mov edx, dword [ebp - 0x68]
jmp dword [edx*4 + 0x10008b54]
mov eax, dword [ebp - 4]
lea ecx, [eax*4 + 0xe63290]
mov dword [ebp - 0x6c], ecx
push 1
mov edx, dword [ebp - 0x6c]
push edx
call fcn.10003a80
test eax, eax
jne 0x100085b3
mov dword [ebp - 0xa0], 0
push 1
mov eax, dword [ebp - 0x6c]
push eax
call fcn.10003990
test eax, eax
jne 0x10008514
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0x38], 0
jmp 0x100084f9
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 1
jge 0x10008514
mov eax, dword [ebp - 0xc8]
add eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x6c]
add ecx, dword [ebp - 0x38]
mov dl, byte [ecx]
mov byte [eax], dl
jmp 0x100084f0
cmp dword [ebp - 0xa0], 5
je 0x100085b3
mov dword [ebp - 0x18], 0
mov eax, 5
and eax, 0xff
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x70], al
mov eax, 5
shr eax, 8
and eax, 0xff
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 0x70], al
mov edx, 5
shr edx, 0x10
and edx, 0xff
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x70], dl
mov ecx, 5
shr ecx, 0x18
and ecx, 0xff
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x70], cl
mov dword [ebp - 0x18], 0
jmp 0x1000859c
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 1
jge 0x100085b3
mov edx, dword [ebp - 0x6c]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp + eax - 0x70]
mov byte [edx], cl
jmp 0x10008593
jmp case.default.0x1000849b
mov edx, dword [ebp - 4]
lea eax, [edx*4 + 0xe63290]
mov dword [ebp - 0x74], eax
push 1
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.10003a80
test eax, eax
jne 0x100086ca
mov dword [ebp - 0xa4], 0
push 1
mov edx, dword [ebp - 0x74]
push edx
call fcn.10003990
test eax, eax
jne 0x1000862a
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0x3c], 0
jmp 0x1000860f
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 1
jge 0x1000862a
mov edx, dword [ebp - 0xcc]
add edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x3c]
mov cl, byte [eax]
mov byte [edx], cl
jmp 0x10008606
cmp dword [ebp - 0xa4], 0x11
je 0x100086ca
mov dword [ebp - 0x1c], 0
mov edx, 0x11
and edx, 0xff
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x78], dl
mov edx, 0x11
shr edx, 8
and edx, 0xff
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x78], dl
mov ecx, 0x11
shr ecx, 0x10
and ecx, 0xff
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x78], cl
mov eax, 0x11
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x78], al
mov dword [ebp - 0x1c], 0
jmp 0x100086b3
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jge 0x100086ca
mov ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov al, byte [ebp + edx - 0x78]
mov byte [ecx], al
jmp 0x100086aa
jmp case.default.0x1000849b
mov ecx, dword [ebp - 4]
lea edx, [ecx*4 + 0xe63290]
mov dword [ebp - 0x7c], edx
push 1
mov eax, dword [ebp - 0x7c]
push eax
call fcn.10003a80
test eax, eax
jne 0x100087e1
mov dword [ebp - 0xa8], 0
push 1
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.10003990
test eax, eax
jne 0x10008741
lea edx, [ebp - 0xa8]
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0x40], 0
jmp 0x10008726
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 1
jge 0x10008741
mov ecx, dword [ebp - 0xd0]
add ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x7c]
add edx, dword [ebp - 0x40]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x1000871d
cmp dword [ebp - 0xa8], 0x23
je 0x100087e1
mov dword [ebp - 0x20], 0
mov ecx, 0x23
and ecx, 0xff
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x80], cl
mov ecx, 0x23
shr ecx, 8
and ecx, 0xff
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0x80], cl
mov eax, 0x23
shr eax, 0x10
and eax, 0xff
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x80], al
mov edx, 0x23
shr edx, 0x18
and edx, 0xff
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x80], dl
mov dword [ebp - 0x20], 0
jmp 0x100087ca
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 1
jge 0x100087e1
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp + ecx - 0x80]
mov byte [eax], dl
jmp 0x100087c1
jmp case.default.0x1000849b
mov eax, dword [ebp - 4]
lea ecx, [eax*4 + 0xe63290]
mov dword [ebp - 0x84], ecx
push 1
mov edx, dword [ebp - 0x84]
push edx
call fcn.10003a80
test eax, eax
jne case.default.0x1000849b
mov dword [ebp - 0xac], 0
push 1
mov eax, dword [ebp - 0x84]
push eax
call fcn.10003990
test eax, eax
jne 0x10008864
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0x44], 0
jmp 0x10008846
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 1
jge 0x10008864
mov eax, dword [ebp - 0xd4]
add eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x84]
add ecx, dword [ebp - 0x44]
mov dl, byte [ecx]
mov byte [eax], dl
jmp 0x1000883d
cmp dword [ebp - 0xac], 0x32
je case.default.0x1000849b
mov dword [ebp - 0x24], 0
mov eax, 0x32
and eax, 0xff
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x88], al
mov eax, 0x32
shr eax, 8
and eax, 0xff
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 0x88], al
mov edx, 0x32
shr edx, 0x10
and edx, 0xff
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x88], dl
mov ecx, 0x32
shr ecx, 0x18
and ecx, 0xff
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x88], cl
mov dword [ebp - 0x24], 0
jmp 0x100088f8
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 1
jge case.default.0x1000849b
mov edx, dword [ebp - 0x84]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov cl, byte [ebp + eax - 0x88]
mov byte [edx], cl
jmp 0x100088ef
mov edx, dword [ebp - 4]
lea eax, [edx*4 + 0xe63293]
mov dword [ebp - 0x8c], eax
push 1
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.10003a80
test eax, eax
jne 0x10008a48
mov dword [ebp - 0xb0], 0
push 1
mov edx, dword [ebp - 0x8c]
push edx
call fcn.10003990
test eax, eax
jne 0x10008993
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0x48], 0
jmp 0x10008975
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 1
jge 0x10008993
mov edx, dword [ebp - 0xd8]
add edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0x48]
mov cl, byte [eax]
mov byte [edx], cl
jmp 0x1000896c
cmp dword [ebp - 0xb0], 0xff
je 0x10008a48
mov dword [ebp - 0x28], 0
mov edx, 0xff
and edx, 0xff
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x90], dl
mov edx, 0xff
shr edx, 8
and edx, 0xff
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x90], dl
mov ecx, 0xff
shr ecx, 0x10
and ecx, 0xff
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x90], cl
mov eax, 0xff
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x90], al
mov dword [ebp - 0x28], 0
jmp 0x10008a2b
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jge 0x10008a48
mov ecx, dword [ebp - 0x8c]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov al, byte [ebp + edx - 0x90]
mov byte [ecx], al
jmp 0x10008a22
jmp 0x10008240
jmp 0x10008b35
mov dword [ebp - 0xe0], 0
mov ecx, 0xf
test ecx, ecx
jle 0x10008b35
push 0xf
push 0xe63294
call fcn.10003a80
test eax, eax
jne 0x10008b35
mov dword [ebp - 8], 0
jmp 0x10008a8f
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xf
jge 0x10008b2b
mov eax, dword [ebp - 8]
add eax, 0xe63294
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb8], 0
push 1
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.10003990
test eax, eax
jne 0x10008aff
lea edx, [ebp - 0xb8]
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0x4c], 0
jmp 0x10008ae1
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jge 0x10008aff
mov ecx, dword [ebp - 0xdc]
add ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0xb4]
add edx, dword [ebp - 0x4c]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x10008ad8
movzx ecx, byte [ebp - 0xb8]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x1006a840]
cmp ecx, eax
je 0x10008b26
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov al, byte [edx + 0x1006a840]
mov byte [ecx + 0xe63294], al
jmp 0x10008a86
mov dword [ebp - 0xe0], 1
lea ecx, [ebp - 0xe8]
push ecx
mov edx, dword [ebp - 0xe4]
push edx
push 0x10
push 0xe63294
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret