Function at 0x5000e020
Capabilities:
Allocate or change rwx memory
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
cmp qword [rsp + 0x138], 0
je 0x5000e078
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x18], 0
je 0x5000e05c
mov byte [rsp + 0x40], 1
jmp 0x5000e061
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x5000e07f
mov eax, dword [rsp + 0x140]
and eax, 4
test eax, eax
jne 0x5000e07f
xor al, al
jmp 0x5000ed2a
mov dword [rsp + 0x48], reloc.WS2_32.dll_inet_ntoa
mov dword [rsp + 0x44], 3
mov rax, qword [rsp + 0x138]
add rax, 5
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
add rax, 0x7fffffff
cmp qword [rsp + 0x148], rax
ja 0x5000e0ed
mov eax, 0x80000000
mov rcx, qword [rsp + 0xc8]
sub rcx, rax
mov rax, rcx
cmp qword [rsp + 0x148], rax
jb 0x5000e0ed
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 5
jmp 0x5000e1a6
mov eax, 0xffffffff
cmp qword [rsp + 0x148], rax
ja 0x5000e111
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x48], 6
jmp 0x5000e1a6
mov dword [rsp + 0x4c], 1
mov eax, 1
imul rax, rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x138]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x41], al
mov dword [rsp + 0x50], 0xfffffffe
jmp 0x5000e150
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x4c], 8
jae 0x5000e175
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x138]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 0x41]
cmp eax, ecx
je 0x5000e173
jmp 0x5000e175
jmp 0x5000e13c
cmp dword [rsp + 0x4c], 8
jne 0x5000e1a6
mov dword [rsp + 0x44], 2
mov dword [rsp + 0x48], 6
mov eax, 1
imul rax, rax, 0x3f
mov rcx, qword [rsp + 0x130]
movzx edx, byte [rsp + 0x41]
mov byte [rcx + rax + 0x30], dl
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x130]
mov qword [rax + 0x18], 0
cmp qword [rsp + 0x138], 0
jne 0x5000e1dd
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 8]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
movzx eax, byte [rax]
cmp eax, 0xfc
jne 0x5000e202
mov rax, qword [rsp + 0x138]
inc rax
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x38], rax
jmp 0x5000e229
movzx eax, byte [rsp + 0x98]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x130]
cmp qword [rcx + 0x18], rax
jae 0x5000e9db
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x98]
call fcn.50009000
mov eax, eax
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x130]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
cmp eax, 0xe9
jne 0x5000e30d
mov eax, dword [rsp + 0x140]
and eax, 2
test eax, eax
je 0x5000e30d
mov byte [rsp + 0x98], 0
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
movsxd rax, dword [rcx + rax]
mov ecx, 5
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x130]
mov qword [rax + 0x18], 0
mov dword [rsp + 0x30], 0
jmp 0x5000e211
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
cmp eax, 0xeb
jne 0x5000e38b
mov eax, dword [rsp + 0x140]
and eax, 2
test eax, eax
je 0x5000e38b
mov byte [rsp + 0x98], 0
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
cdqe
mov ecx, 2
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x130]
mov qword [rax + 0x18], 0
mov dword [rsp + 0x30], 0
jmp 0x5000e211
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
and eax, 0xfb
cmp eax, 0x48
jne 0x5000e57d
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
cmp eax, 0x8b
jne 0x5000e57d
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
and eax, 7
cmp eax, 5
jne 0x5000e57d
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
sar eax, 2
and eax, 1
mov byte [rsp + 0x42], al
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
sar eax, 3
and eax, 7
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x42]
or eax, 0x48
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x130]
mov byte [rdx + rcx + 0x30], al
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0x34]
or eax, 0xb8
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x130]
mov byte [rdx + rcx + 0x30], al
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x38]
movsxd rax, dword [rcx + rax]
mov ecx, 7
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x100], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
mov rdx, qword [rsp + 0x100]
mov qword [rcx + rax + 0x30], rdx
mov eax, dword [rsp + 0x30]
add rax, 8
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0x42]
imul eax, eax, 5
or eax, 0x48
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x130]
mov byte [rdx + rcx + 0x30], al
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], 0x8b
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0x34]
imul eax, eax, 9
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x130]
mov byte [rdx + rcx + 0x30], al
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0x34]
cmp eax, 4
jne 0x5000e52e
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], 0x24
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x5000e578
movzx eax, byte [rsp + 0x34]
cmp eax, 5
jne 0x5000e578
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], 0x6d
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], 0
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x5000e211
movzx eax, byte [rsp + 0xa3]
cmp eax, 0x74
jne 0x5000e698
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], 0x75
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], socket
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0xad]
cdqe
movzx ecx, byte [rsp + 0x98]
mov ecx, ecx
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
lea rax, [rcx + rax + 0x30]
mov qword [rsp + 0x70], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x70]
mov dword [rcx + rax], 0xf82444c7
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x70]
mov dword [rcx + rax], 0xfc2444c7
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 0x70]
mov dword [rcx + rax], 0xf82464ff
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x70]
mov eax, dword [rsp + rax + 0xd0]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x70]
mov eax, dword [rsp + rax + 0xd0]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x30]
add eax, 0x14
mov dword [rsp + 0x30], eax
jmp 0x5000e211
movzx eax, byte [rsp + 0xa3]
cmp eax, 0xe8
jne 0x5000e77d
movsxd rax, dword [rsp + 0xad]
movzx ecx, byte [rsp + 0x98]
mov ecx, ecx
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
lea rax, [rcx + rax + 0x30]
mov qword [rsp + 0x78], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov dword [rcx + rax], 0xf82444c7
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x78]
mov dword [rcx + rax], 0xfc2444c7
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 0x78]
mov dword [rcx + rax], 0xf82454ff
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x78]
mov eax, dword [rsp + rax + 0xd8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x78]
mov eax, dword [rsp + rax + 0xd8]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x30]
add eax, 0x14
mov dword [rsp + 0x30], eax
jmp 0x5000e211
movzx eax, byte [rsp + 0xa3]
cmp eax, 0xff
jne 0x5000e99c
movzx eax, byte [rsp + 0xa5]
cmp eax, 0x25
jne 0x5000e99c
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x98]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
jmp 0x5000e7d9
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
cmp eax, 0x90
je 0x5000e7fd
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
cmp eax, 0xcc
jne 0x5000e809
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
jmp 0x5000e7c6
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0xc0], eax
mov rax, qword [rsp + 0x130]
mov eax, dword [rax + 0x18]
add eax, dword [rsp + 0xc0]
mov ecx, dword [rsp + 0x48]
sub ecx, eax
mov eax, ecx
test eax, eax
jg 0x5000e92f
movsxd rax, dword [rsp + 0xb5]
movzx ecx, byte [rsp + 0x98]
mov ecx, ecx
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
lea rax, [rcx + rax + 0x30]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
mov dword [rcx + rax], 0xf82444c7
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x80]
mov dword [rcx + rax], 0xfc2444c7
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 0x80]
mov dword [rcx + rax], 0xf82464ff
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x80]
mov eax, dword [rsp + rax + 0x90]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x80]
mov eax, dword [rsp + rax + 0x90]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x30]
add eax, 0x14
mov dword [rsp + 0x30], eax
jmp 0x5000e211
movsxd rax, dword [rsp + 0xb5]
movzx ecx, byte [rsp + 0x98]
mov ecx, ecx
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x138], rax
mov byte [rsp + 0x98], 0
mov rax, qword [rsp + 0x130]
mov qword [rax + 0x18], 0
mov dword [rsp + 0x30], 0
jmp 0x5000e211
movzx eax, byte [rsp + 0x98]
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x130]
lea rcx, [rdx + rcx + 0x30]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
call fcn.50005ea0
movzx eax, byte [rsp + 0x98]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x5000e211
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x148]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x138]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x130]
add rax, 0x30
mov rcx, qword [rsp + 0x130]
mov qword [rcx], rax
mov rax, qword [rsp + 0x138]
sub rax, 8
mov qword [rsp + 0xe8], rax
mov eax, dword [rsp + 0x48]
add eax, 8
mov eax, eax
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0xe8]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov rax, qword [rsp + 0x138]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0x130]
movdqu xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rax + 0x20], xmm0
mov eax, dword [rsp + 0x140]
and eax, 1
test eax, eax
je 0x5000eac2
mov rax, qword [rsp + 0x130]
mov r8, qword [rax + 0x18]
mov edx, 0x90
lea rcx, [rsp + 0x60]
call fcn.500060a0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], 0xff
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], 0x25
mov eax, dword [rsp + 0x30]
add eax, 5
mov eax, eax
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], 0
mov eax, dword [rsp + 0x30]
add eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], 0
mov eax, dword [rsp + 0x30]
add eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], 0
mov eax, dword [rsp + 0x30]
add eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x130]
mov byte [rcx + rax + 0x30], 0
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x138]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x30]
add ecx, 6
mov ecx, ecx
mov rdx, qword [rsp + 0x130]
mov qword [rdx + rcx + 0x30], rax
cmp dword [rsp + 0x44], 3
jne 0x5000ebca
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x60], 0x48
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x60], 0xb8
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x148]
mov qword [rsp + rax + 0x60], rcx
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x60], 0xff
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x60], 0xe0
jmp 0x5000ec93
cmp dword [rsp + 0x44], 1
jne 0x5000ec06
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x60], 0x68
mov eax, 1
imul rax, rax, 1
mov ecx, dword [rsp + 0x148]
mov dword [rsp + rax + 0x60], ecx
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x60], 0xc3
jmp 0x5000ec93
cmp dword [rsp + 0x44], 2
jne 0x5000ec50
mov eax, 1
imul rax, rax, 0
mov dword [rsp + rax + 0x60], 0xfff225ff
mov eax, 1
imul rax, rax, 4
mov ecx, 0xffff
mov word [rsp + rax + 0x60], cx
mov eax, 8
imul rax, rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x138]
mov rdx, qword [rsp + 0x148]
mov qword [rcx + rax], rdx
jmp 0x5000ec93
cmp dword [rsp + 0x44], 0
jne 0x5000ec93
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x60], 0xe9
mov eax, 1
imul rax, rax, 1
mov ecx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x138]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x130]
sub rcx, qword [rdx + 0x10]
neg rcx
mov dword [rsp + rax + 0x60], ecx
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x110], WSAStartup
mov dword [rsp + 0xc4], 0
lea rax, [rsp + 0xc4]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0x118]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov rax, qword [rsp + 0x138]
movdqu xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rax], xmm0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x58]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0xe8]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov al, 1
add rsp, 0x128
ret