Function at 0x5767b168
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcbc
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x114]
push ecx
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
cmp dword [0x5768efc0], 0
jne 0x5767b1a7
mov dl, 1
mov eax, dword [0x5768ec2c]
call fcn.5766bb90
mov dword [0x5768efc0], eax
cmp dword [0x5768efc4], 0
jne 0x5767b1c1
mov dl, 1
mov eax, dword [0x5768ec5c]
call fcn.5766bb90
mov dword [0x5768efc4], eax
cmp byte [0x5768ec14], 0
jne 0x5767b1d3
cmp byte [0x5768efb4], 0
je 0x5767b1e5
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x5767b1e1
add esi, eax
jmp 0x5767b1f3
xor esi, esi
jmp 0x5767b1f3
mov dl, 1
mov eax, dword [0x5768ec48]
call fcn.5766bb90
mov esi, eax
test esi, esi
je 0x5767b477
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x15]
push eax
push esi
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x5767b24e
cmp byte [ebp - 0x15], 0xe9
jne 0x5767b24e
lea eax, [ebp - 8]
push eax
push 0x25
lea eax, [ebp - 0x139]
push eax
mov eax, esi
add eax, 5
add eax, dword [ebp - 0x14]
push eax
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x5767b24e
cmp dword [ebp - 0x129], 0x77712345
jne 0x5767b24c
cmp dword [ebp - 0x12d], 0xabcde777
je 0x5767b2c5
mov byte [ebp - 0x139], 0xb8
xor eax, eax
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb9
push 0
push 0
mov eax, 0x5767b0a4
xor ecx, ecx
mov edx, ebx
call fcn.5766ce50
mov dword [ebp - 0x133], eax
mov word [ebp - 0x12f], 0xd1ff
mov dword [ebp - 0x12d], 0xabcde777
mov dword [ebp - 0x129], 0x77712345
xor eax, eax
mov dword [ebp - 0x125], eax
xor eax, eax
mov dword [ebp - 0x121], eax
mov eax, esi
mov dword [ebp - 0x11d], eax
lea edx, [ebp - 8]
push edx
push 5
lea edx, [ebp - 0x119]
push edx
push eax
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
cmp dword [ebp - 0x133], 0
je 0x5767b473
mov eax, dword [ebp - 0x125]
cmp eax, dword [ebp - 0x121]
jne 0x5767b3eb
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x5767b2fd
mov dword [ebp - 0x125], 0x20
jmp 0x5767b305
add eax, eax
mov dword [ebp - 0x125], eax
push ebx
imul eax, dword [ebp - 0x125], 0x210
add eax, 0x25
push eax
call fcn.5766cb08
mov edi, eax
mov dword [ebp - 0x138], edi
lea eax, [ebp - 8]
push eax
push 0x25
lea eax, [ebp - 0x139]
push eax
push edi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x121]
dec eax
test eax, eax
jl 0x5767b399
inc eax
mov dword [ebp - 0x1c], eax
xor edi, edi
lea eax, [ebp - 8]
push eax
push 0x208
lea eax, [ebp - 0x342]
push eax
mov eax, edi
shl eax, 6
add eax, edi
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax*8 + 0x25]
push eax
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
lea eax, [ebp - 8]
push eax
push 0x208
lea eax, [ebp - 0x342]
push eax
mov eax, edi
shl eax, 6
add eax, edi
mov edx, dword [ebp - 0x138]
lea eax, [edx + eax*8 + 0x25]
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
inc edi
dec dword [ebp - 0x1c]
jne 0x5767b346
mov byte [ebp - 0x15], 0xe9
mov eax, dword [ebp - 0x138]
sub eax, esi
sub eax, 5
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
push esi
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x5767b3e0
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x15]
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
push esi
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.5766cbf0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x14]
push eax
lea eax, [ebp - 0x342]
push eax
call sub.KERNEL32.dll_lstrcpyW
lea eax, [ebp - 8]
push eax
push 0x208
lea eax, [ebp - 0x342]
push eax
mov eax, dword [ebp - 0x121]
mov edx, eax
shl eax, 6
add eax, edx
mov edx, dword [ebp - 0x138]
lea eax, [edx + eax*8 + 0x25]
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
inc dword [ebp - 0x121]
lea eax, [ebp - 8]
push eax
push 0x25
lea eax, [ebp - 0x139]
push eax
mov eax, dword [ebp - 0x138]
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
push eax
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.5767ab70
pop ecx
test al, al
je 0x5767b46c
mov eax, 2
jmp 0x5767b479
mov eax, 1
jmp 0x5767b479
xor eax, eax
jmp 0x5767b479
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8