Function at 0x401500
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x27e0
call fcn.0041cd80
push esi
push edi
mov eax, dword [0x59fa30]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x10], eax
call fcn.00401e60
sub eax, 6
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x2780]
push eax
push 0
call fcn.00415260
add esp, 0x10
test eax, eax
je 0x401e37
movzx ecx, byte [ebp - 0x277b]
test ecx, ecx
je 0x40159b
call fcn.0040eb70
test eax, eax
je 0x40159b
push 0x10
push 0x4a4688
push 0x4a4690
push 0
call fcn.00416930
add esp, 0x10
xor eax, eax
jmp 0x401e4d
push 0x2658
lea edx, [ebp - 0x2780]
push edx
push 0x59d1c8
call fcn.0041c990
add esp, 0xc
mov byte [ebp - 0x27ac], 4
mov byte [ebp - 0x27ab], 8
mov byte [ebp - 0x27aa], 0
mov byte [ebp - 0x27a9], 0
mov byte [ebp - 0x27a8], 0xc8
mov byte [ebp - 0x27a7], 0
mov byte [ebp - 0x27a6], 0
mov byte [ebp - 0x27a5], 0
mov byte [ebp - 0x27a4], 0x18
mov byte [ebp - 0x27a3], 0x61
mov byte [ebp - 0x27a2], 0xe
mov byte [ebp - 0x27a1], 0
mov byte [ebp - 0x27a0], 0x22
mov byte [ebp - 0x279f], 0
mov byte [ebp - 0x279e], 0
mov byte [ebp - 0x279d], 0
mov byte [ebp - 0x279c], 0x90
mov byte [ebp - 0x279b], 0x66
mov byte [ebp - 0x279a], 0xe
mov byte [ebp - 0x2799], 0
mov byte [ebp - 0x2798], 0xe8
mov byte [ebp - 0x2797], 2
mov byte [ebp - 0x2796], 0
mov byte [ebp - 0x2795], 0
mov byte [ebp - 0x2794], 0
mov byte [ebp - 0x2793], 0
mov byte [ebp - 0x2792], 0
mov byte [ebp - 0x2791], 0
mov byte [ebp - 0x2790], 0
mov byte [ebp - 0x278f], 0
mov byte [ebp - 0x278e], 0
mov byte [ebp - 0x278d], 0
push 0x2658
lea eax, [ebp - 0x27ac]
push eax
push 0x64
push 0x59d1c8
call fcn.00402b00
add esp, 0x10
movzx ecx, byte [ebp - 0x2752]
test ecx, ecx
je 0x4016e4
movzx edx, byte [ebp - 0x2779]
cmp edx, 2
je 0x4016e4
mov eax, 0x2658
call fcn.0041cd80
mov ecx, 0x996
mov esi, 0x59d1c8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [0x59fde0]
mov eax, dword [ebp - 0x124]
sub eax, 0x2658
mov dword [ebp - 0x124], eax
movzx ecx, byte [ebp - 0x2758]
test ecx, ecx
je 0x40176f
mov dword [ebp - 0x27e0], 0
push 4
mov edx, dword [0x59fb3c]
push edx
lea eax, [ebp - 0x27e0]
push eax
call fcn.0041c990
add esp, 0xc
push 4
push 0x1000
mov ecx, dword [ebp - 0x27e0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x124]
sub edx, 4
push edx
mov eax, dword [0x59fb3c]
add eax, 4
push eax
lea ecx, [ebp - 0x27e0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0042e570
add esp, 0x10
mov eax, dword [ebp - 0x27e0]
mov dword [ebp - 0x124], eax
jmp 0x4017a1
push 4
push 0x1000
mov ecx, dword [ebp - 0x124]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [0x59fb3c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041c990
add esp, 0xc
cmp dword [0x59d1c0], 0
je 0x4017be
push 0x8000
push 0
mov edx, dword [0x59fb3c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x2784]
push edx
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00401f00
add esp, 0x18
test eax, eax
jne 0x401803
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x401e4d
push 0x8000
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x27bc], eax
mov dword [ebp - 0x278c], 0x59fb3c
mov dword [ebp - 0x27d0], 0x59fdd8
lea edx, [ebp - 0x2788]
push edx
push 0x40
mov eax, dword [ebp - 0x2784]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401859
xor eax, eax
jmp 0x401e4d
push 0x40
push 0x1000
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x59d1c4], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x27b8], 0
mov eax, dword [0x59d1c4]
add eax, dword [ebp - 0x27b8]
mov byte [eax], 0x6a
mov ecx, dword [ebp - 0x27b8]
add ecx, 1
mov dword [ebp - 0x27b8], ecx
mov edx, dword [0x59d1c4]
add edx, dword [ebp - 0x27b8]
mov byte [edx], 0
mov eax, dword [ebp - 0x27b8]
add eax, 1
mov dword [ebp - 0x27b8], eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x27b8]
add edx, 1
mov dword [ebp - 0x27b8], edx
push 4
lea eax, [ebp - 0x2784]
push eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
push ecx
call fcn.0041c990
add esp, 0xc
mov edx, dword [ebp - 0x27b8]
add edx, 4
mov dword [ebp - 0x27b8], edx
mov eax, dword [0x59d1c4]
add eax, dword [ebp - 0x27b8]
mov byte [eax], 0x68
mov ecx, dword [ebp - 0x27b8]
add ecx, 1
mov dword [ebp - 0x27b8], ecx
push 4
push 0x59f828
mov edx, dword [0x59d1c4]
add edx, dword [ebp - 0x27b8]
push edx
call fcn.0041c990
add esp, 0xc
mov eax, dword [ebp - 0x27b8]
add eax, 4
mov dword [ebp - 0x27b8], eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x27b8]
add edx, 1
mov dword [ebp - 0x27b8], edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
push ecx
call fcn.0041c990
add esp, 0xc
mov edx, dword [ebp - 0x27b8]
add edx, 4
mov dword [ebp - 0x27b8], edx
mov eax, dword [0x59d1c4]
add eax, dword [ebp - 0x27b8]
mov byte [eax], 0x68
mov ecx, dword [ebp - 0x27b8]
add ecx, 1
mov dword [ebp - 0x27b8], ecx
push 4
lea edx, [ebp - 0x27bc]
push edx
mov eax, dword [0x59d1c4]
add eax, dword [ebp - 0x27b8]
push eax
call fcn.0041c990
add esp, 0xc
mov ecx, dword [ebp - 0x27b8]
add ecx, 4
mov dword [ebp - 0x27b8], ecx
mov edx, dword [0x59d1c4]
add edx, dword [ebp - 0x27b8]
mov byte [edx], 0xff
mov eax, dword [ebp - 0x27b8]
add eax, 1
mov dword [ebp - 0x27b8], eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
mov byte [ecx], 0x15
mov edx, dword [ebp - 0x27b8]
add edx, 1
mov dword [ebp - 0x27b8], edx
push 4
lea eax, [ebp - 0x27d0]
push eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
push ecx
call fcn.0041c990
add esp, 0xc
mov edx, dword [ebp - 0x27b8]
add edx, 4
mov dword [ebp - 0x27b8], edx
mov eax, dword [0x59d1c4]
add eax, dword [ebp - 0x27b8]
mov byte [eax], 0x68
mov ecx, dword [ebp - 0x27b8]
add ecx, 1
mov dword [ebp - 0x27b8], ecx
mov edx, dword [0x59d1c4]
add edx, dword [ebp - 0x27b8]
mov byte [edx], 0
mov eax, dword [ebp - 0x27b8]
add eax, 1
mov dword [ebp - 0x27b8], eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
mov byte [ecx], 0x80
mov edx, dword [ebp - 0x27b8]
add edx, 1
mov dword [ebp - 0x27b8], edx
mov eax, dword [0x59d1c4]
add eax, dword [ebp - 0x27b8]
mov byte [eax], 0
mov ecx, dword [ebp - 0x27b8]
add ecx, 1
mov dword [ebp - 0x27b8], ecx
mov edx, dword [0x59d1c4]
add edx, dword [ebp - 0x27b8]
mov byte [edx], 0
mov eax, dword [ebp - 0x27b8]
add eax, 1
mov dword [ebp - 0x27b8], eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
mov byte [ecx], 0x6a
mov edx, dword [ebp - 0x27b8]
add edx, 1
mov dword [ebp - 0x27b8], edx
mov eax, dword [0x59d1c4]
add eax, dword [ebp - 0x27b8]
mov byte [eax], 0
mov ecx, dword [ebp - 0x27b8]
add ecx, 1
mov dword [ebp - 0x27b8], ecx
mov edx, dword [0x59d1c4]
add edx, dword [ebp - 0x27b8]
mov byte [edx], 0x68
mov eax, dword [ebp - 0x27b8]
add eax, 1
mov dword [ebp - 0x27b8], eax
push 4
push 0x59f828
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
push ecx
call fcn.0041c990
add esp, 0xc
mov edx, dword [ebp - 0x27b8]
add edx, 4
mov dword [ebp - 0x27b8], edx
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x27c4], eax
push 0x4a46c4
mov eax, dword [ebp - 0x27c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x27cc], eax
lea ecx, [ebp - 0x27cc]
mov dword [ebp - 0x27c8], ecx
mov edx, dword [ebp - 0x27c4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x59d1c4]
add eax, dword [ebp - 0x27b8]
mov byte [eax], 0xff
mov ecx, dword [ebp - 0x27b8]
add ecx, 1
mov dword [ebp - 0x27b8], ecx
mov edx, dword [0x59d1c4]
add edx, dword [ebp - 0x27b8]
mov byte [edx], 0x15
mov eax, dword [ebp - 0x27b8]
add eax, 1
mov dword [ebp - 0x27b8], eax
push 4
lea ecx, [ebp - 0x27c8]
push ecx
mov edx, dword [0x59d1c4]
add edx, dword [ebp - 0x27b8]
push edx
call fcn.0041c990
add esp, 0xc
mov eax, dword [ebp - 0x27b8]
add eax, 4
mov dword [ebp - 0x27b8], eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x27b8]
add edx, 1
mov dword [ebp - 0x27b8], edx
mov eax, dword [0x59d1c4]
add eax, dword [ebp - 0x27b8]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x27b8]
add ecx, 1
mov dword [ebp - 0x27b8], ecx
mov edx, dword [0x59d1c4]
add edx, dword [ebp - 0x27b8]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x27b8]
add eax, 1
mov dword [ebp - 0x27b8], eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x27b8]
add edx, 1
mov dword [ebp - 0x27b8], edx
mov eax, dword [0x59d1c4]
add eax, dword [ebp - 0x27b8]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x27b8]
add ecx, 1
mov dword [ebp - 0x27b8], ecx
mov edx, dword [0x59d1c4]
add edx, dword [ebp - 0x27b8]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x27b8]
add eax, 1
mov dword [ebp - 0x27b8], eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
mov byte [ecx], 0xe9
mov edx, dword [ebp - 0x27b8]
add edx, 1
mov dword [ebp - 0x27b8], edx
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x27b4], eax
mov ecx, dword [0x59d1c4]
sub ecx, dword [ebp - 0x27b4]
sub ecx, 5
mov dword [0x59f820], ecx
mov edx, dword [ebp - 0x27b4]
mov dword [ebp - 0x27dc], edx
mov eax, dword [ebp - 0x2774]
add eax, dword [0x59fa30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [0x59d1c4]
mov edx, dword [ebp - 0x27b8]
add edx, 4
sub ecx, edx
mov dword [ebp - 0x27b0], ecx
push 4
lea eax, [ebp - 0x27b0]
push eax
mov ecx, dword [0x59d1c4]
add ecx, dword [ebp - 0x27b8]
push ecx
call fcn.0041c990
add esp, 0xc
mov byte [ebp - 0x27d8], 0xe9
push 4
push 0x59f820
lea edx, [ebp - 0x27d7]
push edx
call fcn.0041c990
add esp, 0xc
lea eax, [ebp - 0x2788]
push eax
push 0x40
push 0x32
mov ecx, dword [ebp - 0x27dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x401d98
xor eax, eax
jmp 0x401e4d
mov edx, dword [ebp - 0x27dc]
mov dword [ebp - 0x27c0], edx
mov eax, dword [ebp - 0x27c0]
mov cl, byte [ebp - 0x27d8]
mov byte [eax], cl
mov edx, dword [ebp - 0x27c0]
add edx, 1
mov dword [ebp - 0x27c0], edx
mov eax, dword [ebp - 0x27c0]
mov cl, byte [ebp - 0x27d7]
mov byte [eax], cl
mov edx, dword [ebp - 0x27c0]
add edx, 1
mov dword [ebp - 0x27c0], edx
mov eax, dword [ebp - 0x27c0]
mov cl, byte [ebp - 0x27d6]
mov byte [eax], cl
mov edx, dword [ebp - 0x27c0]
add edx, 1
mov dword [ebp - 0x27c0], edx
mov eax, dword [ebp - 0x27c0]
mov cl, byte [ebp - 0x27d5]
mov byte [eax], cl
mov edx, dword [ebp - 0x27c0]
add edx, 1
mov dword [ebp - 0x27c0], edx
mov eax, dword [ebp - 0x27c0]
mov cl, byte [ebp - 0x27d4]
mov byte [eax], cl
mov edx, dword [ebp - 0x27c0]
add edx, 1
mov dword [ebp - 0x27c0], edx
jmp 0x401e4b
push 0x10
push 0x4a46d0
push str.Cant___from_Res_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret