Function at 0x1001a160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x100810f0]
xor eax, ebp
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x130], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x128], eax
push 0x40
push 0
lea ecx, [ebp - 0x188]
push ecx
call fcn.10050860
add esp, 0xc
push 0
push 0x40
lea edx, [ebp - 0x188]
push edx
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
jne 0x1001a1ff
cmp dword [ebp - 0x130], 0
je 0x1001a1f4
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x1c0], edx
mov eax, dword [ebp - 0x1c0]
push eax
call fcn.1004ea14
add esp, 4
mov dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x11c]
jmp 0x1001a851
push 0xf8
push 0
lea ecx, [ebp - 0x100]
push ecx
call fcn.10050860
add esp, 0xc
push 0
push 0xf8
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x128]
add eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
jne 0x1001a240
jmp 0x1001a1c6
movzx edx, word [ebp - 0xe8]
cmp edx, 0x10b
je 0x1001a25c
push 9
call dword [sym.imp.KERNEL32.DLL_SetLastError]
jmp 0x1001a1c6
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x108], 0
movzx eax, word [ebp - 0xec]
mov ecx, dword [ebp - 0x14c]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x10c], 0
jmp 0x1001a2a6
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
movzx ecx, word [ebp - 0xfa]
cmp dword [ebp - 0x10c], ecx
jae 0x1001a361
push 0x28
push 0
lea edx, [ebp - 0x1b4]
push edx
call fcn.10050860
add esp, 0xc
push 0
push 0x28
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x128]
add ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x10c]
imul edx, edx, 0x28
add ecx, edx
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
jne 0x1001a302
jmp 0x1001a1c6
cmp dword [ebp - 0x28], 0
jne 0x1001a336
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [ebp - 0x1a8]
jb 0x1001a336
mov edx, dword [ebp - 0x1a8]
add edx, dword [ebp - 0x1a4]
cmp dword [ebp - 0x80], edx
jae 0x1001a336
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x1a0]
add edx, dword [ebp - 0x1a4]
cmp dword [ebp - 0x108], edx
jae 0x1001a35c
mov eax, dword [ebp - 0x1a0]
add eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x108], eax
jmp 0x1001a297
mov ecx, dword [ebp + 0x14]
imul ecx, ecx, 0x14
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x134]
lea ecx, [eax + edx + 0x14]
push ecx
call fcn.1001ab50
add esp, 4
mov dword [ebp - 0x140], eax
mov edx, dword [ebp + 0x14]
shl edx, 4
add edx, dword [ebp - 0x140]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x104], 0
jmp 0x1001a3cb
mov edx, dword [ebp - 0x104]
add edx, 1
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x104]
cmp eax, dword [ebp + 0x14]
jae 0x1001a3ff
mov ecx, dword [ebp - 0x104]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
push eax
call fcn.10050c50
add esp, 4
add eax, 1
push eax
call fcn.1001ab40
add esp, 4
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
jmp 0x1001a3bc
mov ecx, dword [ebp - 8]
push ecx
call fcn.1004f246
add esp, 4
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x130], edx
cmp dword [ebp - 0x130], 0
jne 0x1001a42b
jmp 0x1001a1c6
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.10050860
add esp, 0xc
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], edx
mov eax, dword [ebp - 0x12c]
add eax, dword [ebp - 0xd4]
add eax, dword [ebp - 0xe4]
add eax, dword [ebp - 0xe0]
add eax, dword [ebp - 0xdc]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x12c]
cmp ecx, dword [ebp - 0x13c]
jae 0x1001a48a
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x12c], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1001aa30
add esp, 0xc
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x1001a4b5
jmp 0x1001a1c6
mov eax, dword [ebp - 0x120]
sub eax, dword [ebp - 0x128]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x114], 0
cmp dword [ebp - 0x80], 0
je 0x1001a507
push 0
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x128]
add eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
jne 0x1001a507
jmp 0x1001a1c6
mov edx, dword [ebp - 0x130]
mov dword [ebp - 4], edx
mov dword [ebp - 0x104], 0
jmp 0x1001a52b
mov eax, dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
cmp ecx, dword [ebp + 0x14]
jae 0x1001a6e3
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x124]
push eax
call fcn.1001a870
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jge 0x1001a577
jmp 0x1001a1c6
push 0x1006d434
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x124]
push edx
call fcn.1001ab60
add esp, 0xc
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jge 0x1001a5af
jmp 0x1001a1c6
mov eax, dword [ebp - 0x104]
shl eax, 2
mov ecx, dword [ebp - 0x140]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x18c]
add eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x104]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ecx], reloc.WS2_32.dll_accept
mov edx, dword [ebp - 0x110]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x104]
shl eax, 2
mov ecx, dword [ebp - 0x140]
lea edx, [ecx + eax*4 + 8]
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x18c]
add eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x104]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], eax
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ecx], reloc.WS2_32.dll_accept
mov edx, dword [ebp - 0x110]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x104]
imul eax, eax, 0x14
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 4], 0
mov edx, dword [ebp - 0x104]
imul edx, edx, 0x14
mov eax, dword [ebp - 4]
mov dword [eax + edx + 8], 0
mov ecx, dword [ebp - 0x18c]
add ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x104]
imul edx, edx, 0x14
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [ebp - 0x104]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
push eax
call fcn.10050c50
add esp, 4
add eax, 1
push eax
call fcn.1001ab40
add esp, 4
add eax, dword [ebp - 0x124]
mov dword [ebp - 0x124], eax
jmp 0x1001a51c
mov dword [ebp - 0x10c], 0
jmp 0x1001a6fe
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x7c]
xor edx, edx
mov ecx, 0x14
div ecx
add eax, dword [ebp + 0x14]
cmp dword [ebp - 0x10c], eax
jae 0x1001a73e
mov edx, dword [ebp - 0x10c]
imul edx, edx, 0x14
mov eax, dword [ebp - 4]
cmp dword [eax + edx], 0
jne 0x1001a73c
mov ecx, dword [ebp - 0x10c]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x10], 0
jne 0x1001a73c
jmp 0x1001a73e
jmp 0x1001a6ef
push 0
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
jne 0x1001a768
jmp 0x1001a1c6
cmp dword [ebp - 0x28], 0
jne 0x1001a77d
mov ecx, dword [ebp - 0x18c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x7c], ecx
lea edx, [ebp - 0x114]
push edx
push 0x40
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
test eax, eax
jne 0x1001a7b6
jmp 0x1001a1c6
mov dword [ebp - 0xa8], 0
push 0
push 0x40
lea eax, [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
jne 0x1001a7e5
jmp 0x1001a1c6
push 0
push 0xf8
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x128]
add ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
jne 0x1001a813
jmp 0x1001a1c6
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
test eax, eax
jne 0x1001a842
jmp 0x1001a1c6
mov dword [ebp - 0x11c], 1
jmp 0x1001a1c6
mov ecx, dword [ebp - 0x144]
xor ecx, ebp
call fcn.1004ea1f
mov esp, ebp
pop ebp
ret