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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov edx, ecx
mov dword [ebp - 0xa4], edx
test edi, edi
jne 0x5309be
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword fs:[0x18]
mov eax, dword [0x63330c]
cmp eax, dword [ecx + 0x24]
je 0x5309eb
mov eax, 0xc0000476
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x633308]
test eax, eax
jne 0x530ead
test edx, edx
je 0x530a14
mov ecx, dword ds:[edx]
test ecx, ecx
jne 0x530a2c
mov dword [0x633308], 0xc0000008
mov dword [0x633314], edx
mov eax, 0xc0000008
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x90], eax
call fcn.00530640
mov ecx, edi
mov dword [ebp - 0x84], eax
call fcn.00530640
mov dword [ebp - 0x94], eax
cmp eax, dword [ebp - 0x84]
jne 0x530a71
jmp 0x530a60
cmp dword [0x6310c4], ebx
jne 0x530ea0
jmp 0x530eca
push 0x18
call fcn.0057c47d
mov esi, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
add esp, 4
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.00530120
mov ecx, dword [0x633310]
mov ebx, dword [ebp - 0x88]
mov edi, dword [ebp - 0x80]
mov eax, dword [0x633318]
test ecx, ecx
jne 0x530abc
test eax, eax
je 0x530ad0
mov ecx, eax
mov dword [0x633310], ecx
mov edx, dword ds:[ecx + 8]
test edx, edx
je 0x530ad0
cmp edx, edi
jb 0x530ad0
cmp edx, ebx
jbe 0x530b7d
mov ecx, eax
mov dword [0x633310], ecx
test eax, eax
je 0x530b1a
mov edx, eax
mov esi, eax
mov edi, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x530afa
mov edx, esi
cmp eax, dword [ebp - 0x80]
jb 0x530afa
mov edx, edi
cmp eax, ebx
jbe 0x530b74
mov ecx, dword [edx + 4]
mov eax, ecx
mov dword [0x633310], ecx
test eax, eax
je 0x530b11
mov edx, ecx
mov esi, ecx
mov edi, ecx
jmp 0x530ae2
mov edi, dword [ebp - 0x80]
mov esi, dword [ebp - 0x84]
mov ecx, esi
mov edx, edi
push ebx
and ecx, 0xffff0000
call fcn.00530420
mov ecx, eax
test ecx, ecx
je 0x530ec3
mov dword [ecx], 0x52334953
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x633318]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x633310], ecx
mov dword [0x633318], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x530b62
mov dword [ecx + 8], edx
jmp 0x530b77
mov edi, dword [ebp - 0x80]
mov esi, dword [ebp - 0x84]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x80], ebx
cmp ebx, edi
jb 0x530ec3
cmp ebx, dword [ebp - 0x88]
ja 0x530ec3
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.0057e450
add esp, 0xc
test ebx, ebx
je 0x530ec5
lea eax, [ebx + 0x38]
mov dword [ebp - 0x88], 0
xor ecx, ecx
mov dword [ebp - 0x9c], eax
mov dword [eax], ecx
mov edi, esi
mov dword [eax + 4], ecx
mov ecx, ebx
mov dword [ebp - 0x8c], ecx
lea esp, [esp]
mov ebx, dword [ebp - 0x8c]
lea eax, [ebp - 0x50]
test ebx, ebx
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x7c], 0
mov esi, edi
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x98]
mov dword [ebp - 0xa8], esi
cmovne ecx, ebx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x98], 0
test edi, edi
jne 0x530c55
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x530c7e
movzx eax, byte [edi]
mov esi, dword [eax*8 + 0x63684c]
lea eax, [eax*8 + 0x636848]
push edi
push ecx
push eax
mov ecx, esi
call dword [0x5a08ec]
lea ecx, [ebp - 0x7c]
call esi
mov esi, dword [ebp - 0xa8]
mov edi, eax
mov edx, dword [ebp - 0x80]
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0x98]
add ebx, eax
mov dword [ebp - 0x8c], ebx
mov ebx, edi
sub ebx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x8c]
mov al, bl
sub cl, dl
and al, 7
shl cl, 3
or cl, al
mov eax, dword [ebp - 0x9c]
mov byte [eax], cl
inc eax
mov ecx, dword [ebp - 0x88]
inc ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x88], ecx
cmp ecx, 8
jae 0x530d29
mov al, byte [esi]
cmp al, 0xeb
je 0x530d29
cmp al, 0xe9
je 0x530d29
cmp al, 0xe0
je 0x530d29
cmp al, 0xc2
je 0x530d29
nop
cmp al, 0xc3
je 0x530d29
cmp al, 0xcc
je 0x530d29
cmp al, 0xf3
jne 0x530d9f
cmp byte [esi + 1], 0xc3
je 0x530d29
cmp al, 0x26
je 0x530d10
cmp al, 0x2e
je 0x530d10
mov edi, edi
cmp al, 0x36
je 0x530d10
cmp al, 0x3e
je 0x530d10
cmp al, 0x64
je 0x530d10
cmp al, 0x65
jne 0x530d1c
cmp byte [esi + 1], 0xff
jne 0x530d1c
cmp byte [esi + 2], 0x25
je 0x530d29
lea esp, [esp]
cmp ebx, 5
jb 0x530be0
mov esi, dword [ebp - 0x84]
cmp ebx, 5
jae 0x530d5c
mov ecx, edi
call fcn.005301c0
jmp 0x530d40
test eax, eax
je 0x530e73
add edi, eax
mov ebx, edi
sub ebx, esi
cmp ebx, 5
jb 0x530d34
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x88]
lea esp, [esp]
cmp ecx, 8
ja 0x530e73
mov eax, dword [ebp - 0x8c]
lea ecx, [edx + 0x1e]
cmp eax, ecx
jbe 0x530d77
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.0057e5b0
add esp, 0xc
cmp ebx, 0x19
jbe 0x530db1
mov ebx, dword [ebp - 0x80]
mov esi, 0xc0000008
jmp 0x530eca
nop
cmp al, 0xff
jne 0x530cf6
cmp byte [esi + 1], 0x25
jmp 0x530d1a
mov edi, dword [ebp - 0x80]
add esi, ebx
mov eax, dword [ebp - 0x94]
movzx ecx, byte [edi + 0x1e]
lea edx, [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.005300e0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xa0]
push eax
push 0x40
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa0], 0
push eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xac], ebx
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov esi, eax
test esi, esi
jns 0x530e26
mov ebx, edi
jmp 0x530eca
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xa4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x84]
mov dword [ecx + 0xc], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], edi
mov eax, dword [ebp - 0xa0]
mov dword [ecx + 0x14], eax
mov eax, dword [0x633320]
mov dword [ecx], eax
xor eax, eax
mov dword [0x633320], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x6310c4], 0
mov esi, 0xc0000141
mov ebx, dword [ebp - 0x80]
je 0x530eca
mov edi, dword [ebp - 0x90]
mov ecx, ebx
call fcn.00530600
test edi, edi
je 0x530ea0
push 0x18
push edi
call fcn.0057c502
add esp, 8
mov eax, dword [ebp - 0xa4]
mov dword [0x633314], eax
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 0xc
xor ebx, ebx
mov esi, 0xc0000017
mov edi, dword [ebp - 0x90]
mov dword [0x633308], esi
test ebx, ebx
je 0x530e91
jmp 0x530e8a