Function at 0x536620
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Execute shellcode via indirect call

Disassembly:
sub esp, 0xa8
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
xor esi, esi
mov edx, ecx
mov dword [esp + 0x34], edx
test edi, edi
jne 0x536650
mov eax, 0xc000000d
jmp 0x536a93
mov ecx, dword fs:[0x18]
mov eax, dword [0x635f50]
cmp eax, dword [ecx + 0x24]
je 0x53666f
mov eax, 0xc0000476
jmp 0x536a93
mov eax, dword [0x635f4c]
test eax, eax
jne 0x536a93
nop dword [eax]
test edx, edx
je 0x53669a
mov ecx, dword [edx]
test ecx, ecx
jne 0x5366a5
mov dword [0x635f4c], 0xc0000008
mov dword [0x635f58], edx
mov eax, 0xc0000008
jmp 0x536a93
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x20], eax
call fcn.005362c0
mov ebp, eax
mov ecx, edi
mov dword [esp + 0x14], ebp
call fcn.005362c0
mov dword [esp + 0x28], eax
cmp eax, ebp
jne 0x5366d8
cmp dword [0x633c20], ebx
jne 0x536a88
jmp 0x536ab5
push 0x18
call fcn.0058418d
add esp, 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
mov esi, ebp
lea edx, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00535d80
mov ecx, dword [0x635f54]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov eax, dword [0x635f5c]
test ecx, ecx
jne 0x53671b
test eax, eax
je 0x536730
mov ecx, eax
mov dword [0x635f54], ecx
mov edx, dword ds:[ecx + 8]
test edx, edx
je 0x536730
cmp edx, ebx
jb 0x536730
cmp edx, ebp
jbe 0x5367d4
mov ecx, eax
mov dword [0x635f54], ecx
test eax, eax
je 0x536770
mov edx, eax
mov esi, eax
mov edi, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x536755
mov edx, esi
cmp eax, ebx
jb 0x536755
mov edx, edi
cmp eax, ebp
jbe 0x5367d0
mov ecx, dword [edx + 4]
mov eax, ecx
mov dword [0x635f54], ecx
test eax, eax
je 0x53676c
mov edx, ecx
mov esi, ecx
mov edi, ecx
jmp 0x536742
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, ebx
push ebp
and ecx, 0xffff0000
call fcn.00536080
mov ecx, eax
test ecx, ecx
je 0x536aae
mov dword [ecx], 0x52334953
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x635f5c]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x635f54], ecx
mov dword [0x635f5c], ecx
nop dword [eax]
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x5367c0
mov dword [ecx + 8], edx
mov esi, dword [esp + 0x14]
mov ebx, dword ds:[ecx + 8]
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x18]
jb 0x536aae
cmp ebx, ebp
ja 0x536aae
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.005861b0
add esp, 0xc
test ebx, ebx
je 0x536ab0
lea eax, [ebx + 0x38]
mov dword [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x24], eax
mov ecx, ebx
movq qword [eax], xmm0
mov edi, esi
mov dword [esp + 0x1c], ecx
nop
mov ebx, dword ds:[esp + 0x1c]
lea eax, [esp + 0x6c]
test ebx, ebx
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
mov dword [esp + 0x54], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x58], 0
cmovne ecx, ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], 0
mov ebp, edi
mov dword [esp + 0x2c], 0
movups xmmword [esp + 0x40], xmm0
test edi, edi
jne 0x53688e
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x5368b6
movzx eax, byte [edi]
mov esi, dword [eax*8 + 0x6398a4]
lea eax, [eax*8 + 0x6398a0]
push edi
push ecx
push eax
mov ecx, esi
call dword [0x5a9914]
lea ecx, [esp + 0x4c]
call esi
mov esi, dword [esp + 0x14]
mov edi, eax
mov edx, dword [esp + 0x10]
mov eax, edi
sub eax, ebp
add eax, dword [esp + 0x2c]
add ebx, eax
mov dword [esp + 0x1c], ebx
mov ebx, edi
mov ecx, dword [esp + 0x1c]
sub ebx, esi
sub cl, dl
mov al, bl
shl cl, 3
and al, 7
or cl, al
mov eax, dword [esp + 0x24]
mov byte [eax], cl
inc eax
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
cmp ecx, 8
jae 0x536957
mov al, byte [ebp]
cmp al, 0xeb
je 0x536957
cmp al, 0xe9
je 0x536957
nop
cmp al, 0xe0
je 0x536957
cmp al, 0xc2
je 0x536957
cmp al, 0xc3
je 0x536957
cmp al, 0xcc
je 0x536957
cmp al, 0xf3
jne 0x53694d
cmp byte [ebp + 1], 0xc3
je 0x536957
cmp al, 0x26
je 0x536934
nop
cmp al, 0x2e
je 0x536934
cmp al, 0x36
je 0x536934
cmp al, 0x3e
je 0x536934
cmp al, 0x64
je 0x536934
cmp al, 0x65
jne 0x536942
cmp byte [ebp + 1], 0xff
jne 0x536942
cmp byte [ebp + 2], 0x25
nop
je 0x536957
cmp ebx, 5
jb 0x536830
jmp 0x53698b
cmp al, 0xff
jne 0x53691a
cmp byte [ebp + 1], 0x25
jmp 0x53693e
cmp ebx, 5
jae 0x536982
nop dword [eax]
mov ecx, edi
call fcn.00535e20
test eax, eax
je 0x536a5b
add edi, eax
mov ebx, edi
sub ebx, esi
cmp ebx, 5
jb 0x536960
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp ecx, 8
ja 0x536a5b
mov eax, dword [esp + 0x1c]
lea ebp, [edx + 0x1e]
cmp eax, ebp
jbe 0x536997
int3
sub al, dl
mov byte [edx + 0x36], bl
push ebx
mov byte [edx + 0x1e], al
lea eax, [edx + 0x20]
push esi
push eax
call fcn.00586310
add esp, 0xc
cmp ebx, 0x19
jbe 0x5369c5
mov ebx, dword ds:[esp + 0x10]
mov esi, 0xc0000008
jmp 0x536ab5
mov edi, dword [esp + 0x10]
add esi, ebx
mov eax, dword [esp + 0x28]
mov edx, ebp
movzx ecx, byte [edi + 0x1e]
add ecx, edi
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.00535d40
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push 0x40
lea eax, [esp + 0x40]
mov dword [esp + 0x38], 0
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ebp
push eax
push 0xffffffffffffffff
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov esi, eax
test esi, esi
jns 0x536a2b
mov ebx, edi
jmp 0x536ab5
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], ebp
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x14], eax
mov eax, dword [0x635f64]
mov dword [ecx], eax
xor eax, eax
mov dword [0x635f64], ecx
jmp 0x536a93
cmp dword [0x633c20], 0
mov esi, 0xc0000141
mov ebx, dword [esp + 0x10]
je 0x536ab5
mov edi, dword [esp + 0x20]
mov ecx, ebx
call fcn.00536290
test edi, edi
je 0x536a88
push 0x18
push edi
call fcn.00584212
add esp, 8
mov eax, dword [esp + 0x34]
mov dword [0x635f58], eax
mov eax, esi
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00583f7f
add esp, 0xa8
ret 0xc
xor ebx, ebx
mov esi, 0xc0000017
mov edi, dword [esp + 0x20]
mov dword [0x635f4c], esi
nop
test ebx, ebx
je 0x536a78
jmp 0x536a71