Function at 0x10001858
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x20
call fcn.100175e6
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
mov ebx, dword [ebp - 4]
add ebx, 0x1c
mov dword [ebp - 8], ebx
push htons
push 0
push dword [ebp + 0x10]
push 1
mov ebx, 0x9dc
call fcn.10017f00
add esp, 0x10
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x100018cf
push eax
mov ebx, eax
call fcn.10001431
inc eax
push eax
call fcn.100175e6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100018e2
push ebx
call fcn.100175ec
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1000190c
push eax
mov ebx, eax
call fcn.10001431
inc eax
push eax
call fcn.100175e6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000191f
push ebx
call fcn.100175ec
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.10001dba
test eax, eax
je 0x10001951
mov eax, 0
jmp 0x10001cb7
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1000198e
push 0x111
push 0x402078e
push 6
call fcn.100175fe
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x100019b2
mov eax, 0
jmp 0x10001cb7
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10001a00
push 0x1ae
push 0x402078e
push 6
call fcn.100175fe
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x10001a24
mov eax, 0
jmp 0x10001cb7
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
push 0x40
push 8
mov ebx, dword [ebp - 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001a71
push 0x25d
push 0x402078e
push 6
call fcn.100175fe
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10001a88
mov eax, 0
jmp 0x10001cb7
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
push 0x80000301
push 0
push 8
push 0x80000301
push 0
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push 2
mov ebx, 0x910
call fcn.10017fe0
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10001add
push ebx
call fcn.100175ec
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x1c
mov dword [ebp - 0xc], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push 1
mov ebx, 0x198
call fcn.100181d0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x10032310
push dword [ebp - 0x10]
push 0x1003231a
mov ecx, 3
call fcn.100017e1
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10001b43
push ebx
call fcn.100175ec
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 0x18
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
push 8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10001b61
add eax, 8
push eax
mov ebx, dword [ebp - 8]
push dword [ebx]
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10001b92
push 0x405
push 0x402078e
push 6
call fcn.100175fe
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10001ba5
push ebx
call fcn.100175ec
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x10001cad
push 0x10032d66
push 4
mov eax, 2
call fcn.10017a40
add esp, 8
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ebx, dword [0x10032d66]
mov dword [ebp - 0xc], ebx
call fcn.10001838
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0xc]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x10001bf6
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x10]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0xc]
call fcn.100175f2
add esp, 8
mov dword [0x10032d66], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x10]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 8]
push edi
push eax
push 0x20
call fcn.100175e6
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10001c50
push eax
mov ebx, eax
call fcn.10001431
inc eax
push eax
call fcn.100175e6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10001c6f
push eax
mov ebx, eax
call fcn.10001431
inc eax
push eax
call fcn.100175e6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10001c93
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.100175e6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
pop eax
pop edi
mov dword [edi], eax
mov eax, 1
jmp 0x10001cb7
mov eax, 0
jmp 0x10001cb7
push eax
mov ebx, dword [ebp - 4]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10001ccc
push ebx
call fcn.100175ec
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10001ce0
push ebx
call fcn.100175ec
add esp, 4
pop ebx
add ebx, 0x10
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10001cf4
push ebx
call fcn.100175ec
add esp, 4
pop ebx
call fcn.100175ec
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc