Function at 0x486b87
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
push esi
push edi
mov dword [ebp - 0x2e0], 0x400000
mov dword [ebp - 0x2dc], 0
push 0x4813a0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x494924], eax
call fcn.00487184
sub eax, 6
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x2d8]
push ecx
lea edx, [ebp - 0x1d4]
push edx
push 0
call fcn.00488ea0
add esp, 0x10
test eax, eax
je 0x487168
mov eax, dword [0x494924]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c8]
and ecx, 0xff
test ecx, ecx
je 0x486c1d
lea ecx, [ebp - 0x390]
call fcn.0048a260
lea ecx, [ebp - 0x390]
call fcn.0048a27f
push 0x1c0
lea edx, [ebp - 0x1d4]
push edx
push 0x494758
call fcn.0048b890
add esp, 0xc
mov byte [ebp - 0x30c], 4
mov byte [ebp - 0x30b], 8
mov byte [ebp - 0x30a], 0
mov byte [ebp - 0x309], 0
mov byte [ebp - 0x308], 0xc8
mov byte [ebp - 0x307], 0
mov byte [ebp - 0x306], 0
mov byte [ebp - 0x305], 0
mov byte [ebp - 0x304], 0x18
mov byte [ebp - 0x303], 0x61
mov byte [ebp - 0x302], 0xe
mov byte [ebp - 0x301], 0
mov byte [ebp - 0x300], 0x22
mov byte [ebp - 0x2ff], 0
mov byte [ebp - 0x2fe], 0
mov byte [ebp - 0x2fd], 0
mov byte [ebp - 0x2fc], 0x90
mov byte [ebp - 0x2fb], 0x66
mov byte [ebp - 0x2fa], 0xe
mov byte [ebp - 0x2f9], 0
mov byte [ebp - 0x2f8], 0xe8
mov byte [ebp - 0x2f7], 2
mov byte [ebp - 0x2f6], 0
mov byte [ebp - 0x2f5], 0
mov byte [ebp - 0x2f4], 0
mov byte [ebp - 0x2f3], 0
mov byte [ebp - 0x2f2], 0
mov byte [ebp - 0x2f1], 0
mov byte [ebp - 0x2f0], 0
mov byte [ebp - 0x2ef], 0
mov byte [ebp - 0x2ee], 0
mov byte [ebp - 0x2ed], 0
push 0x1c0
lea eax, [ebp - 0x30c]
push eax
push 0x64
push 0x494758
call fcn.00489390
add esp, 0x10
mov ecx, dword [ebp - 0x1d4]
and ecx, 0xff
test ecx, ecx
je 0x486d6c
mov edx, dword [ebp - 0x1c4]
and edx, 0xff
cmp edx, 2
je 0x486d6c
sub esp, 0x1c0
mov ecx, 0x70
mov esi, 0x494758
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [0x494b68]
mov al, byte [ebp - 0x1c4]
push eax
mov ecx, dword [ebp - 0x1c5]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x1c6]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x1c7]
and eax, 0xff
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
mov edx, dword [0x494eb4]
push edx
call fcn.00489400
add esp, 0x24
test eax, eax
jne 0x486dc6
xor eax, eax
jmp 0x48717e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x388], eax
call fcn.00486b62
mov dword [0x494920], eax
mov dword [ebp - 0x2e4], 0x494eb4
mov dword [ebp - 0x378], 0x494920
lea eax, [ebp - 0x10]
push eax
push 0x40
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x486e12
xor eax, eax
jmp 0x48717e
mov dword [ebp - 0x384], 0
mov eax, dword [ebp - 0x384]
mov byte [ebp + eax - 0x374], 0x6a
mov ecx, dword [ebp - 0x384]
add ecx, 1
mov dword [ebp - 0x384], ecx
mov edx, dword [ebp - 0x384]
mov byte [ebp + edx - 0x374], 0
mov eax, dword [ebp - 0x384]
add eax, 1
mov dword [ebp - 0x384], eax
mov ecx, dword [ebp - 0x384]
mov byte [ebp + ecx - 0x374], 0x68
mov edx, dword [ebp - 0x384]
add edx, 1
mov dword [ebp - 0x384], edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x384]
lea edx, [ebp + ecx - 0x374]
push edx
call fcn.0048b890
add esp, 0xc
mov eax, dword [ebp - 0x384]
add eax, 4
mov dword [ebp - 0x384], eax
mov ecx, dword [ebp - 0x384]
mov byte [ebp + ecx - 0x374], 0x68
mov edx, dword [ebp - 0x384]
add edx, 1
mov dword [ebp - 0x384], edx
push 4
push 0x49492c
mov eax, dword [ebp - 0x384]
lea ecx, [ebp + eax - 0x374]
push ecx
call fcn.0048b890
add esp, 0xc
mov edx, dword [ebp - 0x384]
add edx, 4
mov dword [ebp - 0x384], edx
mov eax, dword [ebp - 0x384]
mov byte [ebp + eax - 0x374], 0x68
mov ecx, dword [ebp - 0x384]
add ecx, 1
mov dword [ebp - 0x384], ecx
push 4
lea edx, [ebp - 0x2e0]
push edx
mov eax, dword [ebp - 0x384]
lea ecx, [ebp + eax - 0x374]
push ecx
call fcn.0048b890
add esp, 0xc
mov edx, dword [ebp - 0x384]
add edx, 4
mov dword [ebp - 0x384], edx
mov eax, dword [ebp - 0x384]
mov byte [ebp + eax - 0x374], 0x68
mov ecx, dword [ebp - 0x384]
add ecx, 1
mov dword [ebp - 0x384], ecx
push 4
lea edx, [ebp - 0x388]
push edx
mov eax, dword [ebp - 0x384]
lea ecx, [ebp + eax - 0x374]
push ecx
call fcn.0048b890
add esp, 0xc
mov edx, dword [ebp - 0x384]
add edx, 4
mov dword [ebp - 0x384], edx
mov eax, dword [ebp - 0x384]
mov byte [ebp + eax - 0x374], 0xff
mov ecx, dword [ebp - 0x384]
add ecx, 1
mov dword [ebp - 0x384], ecx
mov edx, dword [ebp - 0x384]
mov byte [ebp + edx - 0x374], 0x15
mov eax, dword [ebp - 0x384]
add eax, 1
mov dword [ebp - 0x384], eax
push 4
lea ecx, [ebp - 0x378]
push ecx
mov edx, dword [ebp - 0x384]
lea eax, [ebp + edx - 0x374]
push eax
call fcn.0048b890
add esp, 0xc
mov ecx, dword [ebp - 0x384]
add ecx, 4
mov dword [ebp - 0x384], ecx
mov edx, dword [ebp - 0x384]
mov byte [ebp + edx - 0x374], 0x8b
mov eax, dword [ebp - 0x384]
add eax, 1
mov dword [ebp - 0x384], eax
mov ecx, dword [ebp - 0x384]
mov byte [ebp + ecx - 0x374], 0xe5
mov edx, dword [ebp - 0x384]
add edx, 1
mov dword [ebp - 0x384], edx
mov eax, dword [ebp - 0x384]
mov byte [ebp + eax - 0x374], 0x5d
mov ecx, dword [ebp - 0x384]
add ecx, 1
mov dword [ebp - 0x384], ecx
mov edx, dword [ebp - 0x384]
mov byte [ebp + edx - 0x374], 0x8b
mov eax, dword [ebp - 0x384]
add eax, 1
mov dword [ebp - 0x384], eax
mov ecx, dword [ebp - 0x384]
mov byte [ebp + ecx - 0x374], 0xe5
mov edx, dword [ebp - 0x384]
add edx, 1
mov dword [ebp - 0x384], edx
mov eax, dword [ebp - 0x384]
mov byte [ebp + eax - 0x374], 0x5d
mov ecx, dword [ebp - 0x384]
add ecx, 1
mov dword [ebp - 0x384], ecx
mov edx, dword [ebp - 0x384]
mov byte [ebp + edx - 0x374], 0xe9
mov eax, dword [ebp - 0x384]
add eax, 1
mov dword [ebp - 0x384], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2ec], ecx
lea edx, [ebp - 0x374]
sub edx, dword [ebp - 0x2ec]
sub edx, 5
mov dword [0x49491c], edx
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x38c], eax
mov ecx, dword [ebp - 0x1cc]
add ecx, 0x400000
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x374]
sub edx, eax
mov ecx, dword [ebp - 0x384]
add ecx, 4
sub edx, ecx
mov dword [ebp - 0x2e8], edx
push 4
lea edx, [ebp - 0x2e8]
push edx
mov eax, dword [ebp - 0x384]
lea ecx, [ebp + eax - 0x374]
push ecx
call fcn.0048b890
add esp, 0xc
mov byte [ebp - 0x380], 0xe9
push 4
push 0x49491c
lea edx, [ebp - 0x37f]
push edx
call fcn.0048b890
add esp, 0xc
push 0
push 5
lea eax, [ebp - 0x380]
push eax
mov ecx, dword [ebp - 0x38c]
push ecx
mov edx, dword [ebp - 0x388]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x310], eax
jmp 0x48717c
push 0x10
push 0x4813b0
push 0x4813b8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret