Function at 0x576754f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x58]
mov edx, dword [0x576691ac]
call fcn.57665d58
xor eax, eax
push ebp
push 0x576758a2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5768ef98], 0
jne 0x57675871
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x57675594
push 0
mov dl, 1
mov eax, dword [0x5768eca4]
call fcn.5766ba7c
call fcn.576706e0
push eax
push 0x57675308
push 0x5768ef88
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.57675ea8
push 0
mov dl, 1
mov eax, dword [0x5768eca8]
call fcn.5766ba7c
call fcn.576706e0
push eax
push 0x57675370
push 0x5768ef8c
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.57675ea8
jmp 0x5767586a
cmp byte [0x5768ef9c], 0
jne 0x57675815
mov byte [0x5768ef9c], 1
lea edx, [ebp - 0xc]
mov eax, dword [0x5768edb8]
call fcn.57667e90
lea eax, [ebp - 0x60]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.57667b38
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0xc]
call fcn.576657e4
mov eax, dword [ebp - 0x5c]
call fcn.57665998
push eax
push 0xc
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x57675815
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
setne byte [ebp - 1]
push 0
push 0
push 0
push 0xf001f
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x5767580b
mov ebx, 0x32
cmp byte [ebp - 1], 0
jne 0x57675654
mov eax, dword [edi]
mov edx, dword [edi + 4]
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x57675646
cmp eax, dword [esp]
pop edx
pop eax
je 0x57675654
push 0x32
call sub.KERNEL32.dll_Sleep
dec ebx
jne 0x57675628
cmp byte [ebp - 1], 0
jne 0x5767566f
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
cmp edx, dword [ecx + 4]
jne 0x57675669
cmp eax, dword [ecx]
je 0x576757fd
push 0x40
push 0x1000
push 0xa
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x5768ec2c]
call fcn.5766bb90
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x5768ecac]
call fcn.5766ba7c
lea edx, [ebp - 0x58]
call fcn.5766b930
mov eax, dword [ebp - 0x38]
call fcn.57666290
test eax, eax
jl 0x576757cd
inc eax
xor ebx, ebx
mov edx, ebx
shl edx, 3
sub edx, ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + edx*4 + 0xc]
cmp edx, dword [ebp - 0x14]
jne 0x576757c5
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x38]
cmp dword [edx + eax*4 + 0x14], 0
jne 0x576756ee
mov edx, dword [ebp - 0x38]
cmp dword [edx + eax*4 + 0x18], 0
je 0x576757cd
mov edx, dword [ebp - 8]
mov dword [edi + 8], edx
mov edx, dword [ebp - 8]
mov byte [edx], 0xff
mov edx, dword [ebp - 8]
mov byte [edx + 1], 0x25
mov edx, dword [ebp - 8]
add edx, 6
mov ecx, dword [ebp - 8]
mov dword [ecx + 2], edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [edx + 6], ecx
mov edx, dword [ebp - 0x38]
cmp dword [edx + eax*4 + 0x14], 0
je 0x57675733
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + eax*4 + 0x14]
mov dword [ebp - 0x14], eax
jmp 0x5767573f
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + eax*4 + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.5766ccd8
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x57675761
mov edx, 4
mov eax, dword [ebp - 0x14]
call fcn.5766cdb8
test al, al
je 0x576757cd
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x38]
cmp byte [edx + eax*4 + 0x10], 0
je 0x57675784
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
sub ecx, dword [edx + eax*4 + 4]
sub ecx, 5
mov dword [ebp - 0x10], ecx
jmp 0x5767578a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov ecx, 4
mov edx, dword [ebp - 0x14]
call fcn.5766fa00
test al, al
jne 0x576757a6
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
cmp byte [ebp - 0x15], 0
je 0x576757b9
mov edx, 4
mov eax, dword [ebp - 0x14]
call fcn.5766ce48
mov eax, dword [ebp - 8]
mov dword [0x5768efa0], eax
xor esi, esi
jmp 0x576757cd
inc ebx
dec eax
jne 0x576756b8
cmp dword [0x5768efa0], 0
jne 0x576757ee
push edi
call sub.KERNEL32.dll_UnmapViewOfFile
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_VirtualFree
jmp 0x5767580b
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
jmp 0x5767580b
mov eax, dword [edi + 8]
mov dword [0x5768efa0], eax
push edi
call sub.KERNEL32.dll_UnmapViewOfFile
test esi, esi
je 0x57675815
push esi
call sub.KERNEL32.dll_CloseHandle
cmp dword [0x5768efa0], 0
je 0x5767583f
push 0
mov eax, dword [0x5768efa0]
push eax
push 0x57675468
push 0x5768ef94
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.57675ea8
jmp 0x5767586a
push 0
mov dl, 1
mov eax, dword [0x5768ecac]
call fcn.5766ba7c
call fcn.576706e0
push eax
push 0x576753ec
push 0x5768ef90
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.57675ea8
mov byte [0x5768ef98], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576758a9
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.5766552c
lea eax, [ebp - 0x58]
mov edx, dword [0x576691ac]
call fcn.57665e1c
lea eax, [ebp - 0xc]
call fcn.57665508
ret