Function at 0x5bb270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x5bb286
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x5bb28f
mov dword [eax], edi
mov ebx, dword [ebp + 0x18]
cmp ebx, edi
je 0x5bb298
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x8d4440], eax
je 0x5bb2b3
pop edi
mov eax, 0x10dd
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x8d4444]
cmp eax, edi
jne 0x5bb5c1
mov ecx, dword [ebp + 8]
cmp ecx, edi
jne 0x5bb2d4
pop edi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push esi
mov esi, dword [ecx]
cmp esi, edi
jne 0x5bb2f4
pop esi
mov eax, 6
pop edi
mov dword [0x8d4444], eax
mov dword [0x8d4448], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi], 0xff
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x5bb317
cmp byte [esi + 1], 0x25
jne 0x5bb317
mov edi, dword [esi + 2]
mov edx, edi
mov ecx, esi
call fcn.005ba7d0
test al, al
je 0x5bb317
mov esi, dword [edi]
cmp byte [esi], 0xeb
jne 0x5bb34f
movsx eax, byte [esi + 1]
lea esi, [esi + eax + 2]
mov al, byte [esi]
cmp al, 0xff
jne 0x5bb344
cmp byte [esi + 1], 0x25
jne 0x5bb344
mov edi, dword [esi + 2]
mov edx, edi
mov ecx, esi
call fcn.005ba7d0
test al, al
je 0x5bb34f
mov esi, dword [edi]
jmp 0x5bb34f
cmp al, 0xe9
jne 0x5bb34f
mov ecx, dword [esi + 1]
lea esi, [esi + ecx + 5]
mov ecx, dword [ebp + 0xc]
mov edi, ecx
test ecx, ecx
jne 0x5bb35f
xor eax, eax
mov dword [ebp + 0xc], eax
jmp 0x5bb3bc
cmp byte [ecx], 0xff
jne 0x5bb37a
cmp byte [ecx + 1], 0x25
jne 0x5bb37a
mov ebx, dword [ecx + 2]
mov edx, ebx
call fcn.005ba7d0
test al, al
je 0x5bb37a
mov edi, dword [ebx]
cmp byte [edi], 0xeb
jne 0x5bb3b4
movsx edx, byte [edi + 1]
mov al, byte [edi + edx + 2]
lea edi, [edi + edx + 2]
cmp al, 0xff
jne 0x5bb3a9
cmp byte [edi + 1], 0x25
jne 0x5bb3a9
mov ebx, dword [edi + 2]
mov edx, ebx
mov ecx, edi
call fcn.005ba7d0
test al, al
je 0x5bb3b4
mov edi, dword [ebx]
jmp 0x5bb3b4
cmp al, 0xe9
jne 0x5bb3b4
mov eax, dword [edi + 1]
lea edi, [edi + eax + 5]
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 0xc], edi
mov eax, edi
cmp eax, esi
jne 0x5bb3d2
cmp dword [0x8d4438], 0
jne 0x5bb5b4
jmp 0x5bb583
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x5bb3db
mov dword [ecx], esi
test ebx, ebx
je 0x5bb3e1
mov dword [ebx], eax
push 0x18
call fcn.007c8529
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x5bb3fe
mov dword [ebp - 4], 8
jmp 0x5bb583
mov eax, esi
call fcn.005baae0
mov dword [ebp - 8], eax
test eax, eax
jne 0x5bb418
mov dword [ebp - 4], 8
jmp 0x5bb583
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5bb421
mov dword [ecx], eax
xor ecx, ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov ebx, eax
add eax, 0x1e
mov edi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
jmp 0x5bb43b
mov ebx, dword [ebp + 0x18]
lea ecx, [ebp + 0x14]
push ecx
push 0
push edi
lea edx, [ebp - 0xc]
push edx
push ebx
mov dword [ebp - 4], edi
mov dword [ebp + 0x14], 0
call fcn.005bbd20
mov edi, eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 4]
add eax, edi
add ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0x18], ebx
mov cl, byte [ebp + 0x18]
sub cl, al
add cl, cl
mov ebx, edi
sub ebx, esi
add cl, cl
mov dl, bl
add cl, cl
and dl, 7
xor cl, dl
mov byte [eax + 0x38], cl
mov eax, dword [ebp - 4]
push eax
call fcn.005ba8c0
add esp, 4
test eax, eax
jne 0x5bb498
cmp ebx, 5
jb 0x5bb438
jmp 0x5bb4ba
cmp ebx, 5
jae 0x5bb4ba
lea ecx, [ecx]
cmp byte [edi], 0x90
jne 0x5bb4b1
inc edi
mov ebx, edi
sub ebx, esi
cmp ebx, 5
jb 0x5bb4a0
jmp 0x5bb4ba
cmp ebx, 5
jb 0x5bb573
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0xc]
jbe 0x5bb4c3
int3
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
sub al, cl
push ebx
mov byte [ecx + 0x36], bl
add ecx, 0x20
push esi
push ecx
mov byte [edi], al
call fcn.008030c0
add esp, 0xc
cmp ebx, 0x19
jbe 0x5bb4ef
mov dword [ebp - 4], 6
jmp 0x5bb583
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x44], eax
movzx eax, byte [edi]
add eax, edx
lea ecx, [esi + ebx]
mov dword [edx + 0x40], ecx
lea edx, [eax + 5]
mov byte [eax], 0xe9
sub ecx, edx
mov dword [eax + 1], ecx
mov ecx, dword [ebp - 0xc]
push ecx
add eax, 5
push eax
call fcn.005ba890
add esp, 8
lea edx, [ebp - 0x14]
push edx
push 0x40
push ebx
xor edi, edi
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x5bb540
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x5bb583
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax + 0xc], esi
mov dword [eax + 4], edi
mov dword [eax + 0x10], edx
mov edx, dword [0x8d4450]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x14]
pop esi
pop edi
mov dword [eax + 0x14], ecx
mov dword [eax], edx
mov dword [0x8d4450], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [0x8d4438], 0
mov dword [ebp - 4], 9
jne 0x5bb58b
mov eax, dword [ebp - 4]
mov dword [0x8d4444], eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x5bb5a4
call fcn.005bac70
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5bb5a4
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5bb5b4
push eax
call fcn.007c8563
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [0x8d4448], ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14