Function at 0x4041de
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x448c
call fcn.00406ea0
mov eax, dword [0x4152b8]
mov dword [ebp - 0x4458], eax
mov dword [ebp - 0x4454], 0
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x18], eax
call fcn.00404917
sub eax, 6
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x4450]
push edx
lea eax, [ebp - 0x434c]
push eax
push 0
call fcn.00404110
add esp, 0x10
test eax, eax
je 0x4048fd
push 4
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x4153c4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00406a80
add esp, 0xc
cmp dword [0x410d20], 0
je 0x40428f
push 0x8000
push 0
mov edx, dword [0x4153c4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea eax, [ebp - 0x4450]
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 - 0x4454]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004049b7
add esp, 0x18
test eax, eax
jne 0x4042d1
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x404913
push 0x8000
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x4488], eax
mov dword [ebp - 0x445c], 0x4153c4
call fcn.004041b9
mov dword [0x415078], eax
mov dword [ebp - 0x4470], 0x415078
lea edx, [ebp - 0x10]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x4458]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40432e
xor eax, eax
jmp 0x404913
push 0x40
push 0x1000
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x410d38], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x4484], 0
mov eax, dword [0x410d38]
add eax, dword [ebp - 0x4484]
mov byte [eax], 0x6a
mov ecx, dword [ebp - 0x4484]
add ecx, 1
mov dword [ebp - 0x4484], ecx
mov edx, dword [0x410d38]
add edx, dword [ebp - 0x4484]
mov byte [edx], 0
mov eax, dword [ebp - 0x4484]
add eax, 1
mov dword [ebp - 0x4484], eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x4484]
add edx, 1
mov dword [ebp - 0x4484], edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
push ecx
call fcn.00406a80
add esp, 0xc
mov edx, dword [ebp - 0x4484]
add edx, 4
mov dword [ebp - 0x4484], edx
mov eax, dword [0x410d38]
add eax, dword [ebp - 0x4484]
mov byte [eax], 0x68
mov ecx, dword [ebp - 0x4484]
add ecx, 1
mov dword [ebp - 0x4484], ecx
push 4
push 0x415080
mov edx, dword [0x410d38]
add edx, dword [ebp - 0x4484]
push edx
call fcn.00406a80
add esp, 0xc
mov eax, dword [ebp - 0x4484]
add eax, 4
mov dword [ebp - 0x4484], eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x4484]
add edx, 1
mov dword [ebp - 0x4484], edx
push 4
lea eax, [ebp - 0x4458]
push eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
push ecx
call fcn.00406a80
add esp, 0xc
mov edx, dword [ebp - 0x4484]
add edx, 4
mov dword [ebp - 0x4484], edx
mov eax, dword [0x410d38]
add eax, dword [ebp - 0x4484]
mov byte [eax], 0x68
mov ecx, dword [ebp - 0x4484]
add ecx, 1
mov dword [ebp - 0x4484], ecx
push 4
lea edx, [ebp - 0x4488]
push edx
mov eax, dword [0x410d38]
add eax, dword [ebp - 0x4484]
push eax
call fcn.00406a80
add esp, 0xc
mov ecx, dword [ebp - 0x4484]
add ecx, 4
mov dword [ebp - 0x4484], ecx
mov edx, dword [0x410d38]
add edx, dword [ebp - 0x4484]
mov byte [edx], 0xff
mov eax, dword [ebp - 0x4484]
add eax, 1
mov dword [ebp - 0x4484], eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
mov byte [ecx], 0x15
mov edx, dword [ebp - 0x4484]
add edx, 1
mov dword [ebp - 0x4484], edx
push 4
lea eax, [ebp - 0x4470]
push eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
push ecx
call fcn.00406a80
add esp, 0xc
mov edx, dword [ebp - 0x4484]
add edx, 4
mov dword [ebp - 0x4484], edx
mov eax, dword [0x410d38]
add eax, dword [ebp - 0x4484]
mov byte [eax], 0x68
mov ecx, dword [ebp - 0x4484]
add ecx, 1
mov dword [ebp - 0x4484], ecx
mov edx, dword [0x410d38]
add edx, dword [ebp - 0x4484]
mov byte [edx], 0
mov eax, dword [ebp - 0x4484]
add eax, 1
mov dword [ebp - 0x4484], eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
mov byte [ecx], 0x80
mov edx, dword [ebp - 0x4484]
add edx, 1
mov dword [ebp - 0x4484], edx
mov eax, dword [0x410d38]
add eax, dword [ebp - 0x4484]
mov byte [eax], 0
mov ecx, dword [ebp - 0x4484]
add ecx, 1
mov dword [ebp - 0x4484], ecx
mov edx, dword [0x410d38]
add edx, dword [ebp - 0x4484]
mov byte [edx], 0
mov eax, dword [ebp - 0x4484]
add eax, 1
mov dword [ebp - 0x4484], eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
mov byte [ecx], 0x6a
mov edx, dword [ebp - 0x4484]
add edx, 1
mov dword [ebp - 0x4484], edx
mov eax, dword [0x410d38]
add eax, dword [ebp - 0x4484]
mov byte [eax], 0
mov ecx, dword [ebp - 0x4484]
add ecx, 1
mov dword [ebp - 0x4484], ecx
mov edx, dword [0x410d38]
add edx, dword [ebp - 0x4484]
mov byte [edx], 0x68
mov eax, dword [ebp - 0x4484]
add eax, 1
mov dword [ebp - 0x4484], eax
push 4
push 0x415080
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
push ecx
call fcn.00406a80
add esp, 0xc
mov edx, dword [ebp - 0x4484]
add edx, 4
mov dword [ebp - 0x4484], edx
push 0x4014a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x4478], eax
push 0x4014b4
mov eax, dword [ebp - 0x4478]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4474], eax
lea ecx, [ebp - 0x4474]
mov dword [ebp - 0x4468], ecx
mov edx, dword [ebp - 0x4478]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x410d38]
add eax, dword [ebp - 0x4484]
mov byte [eax], 0xff
mov ecx, dword [ebp - 0x4484]
add ecx, 1
mov dword [ebp - 0x4484], ecx
mov edx, dword [0x410d38]
add edx, dword [ebp - 0x4484]
mov byte [edx], 0x15
mov eax, dword [ebp - 0x4484]
add eax, 1
mov dword [ebp - 0x4484], eax
push 4
lea ecx, [ebp - 0x4468]
push ecx
mov edx, dword [0x410d38]
add edx, dword [ebp - 0x4484]
push edx
call fcn.00406a80
add esp, 0xc
mov eax, dword [ebp - 0x4484]
add eax, 4
mov dword [ebp - 0x4484], eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x4484]
add edx, 1
mov dword [ebp - 0x4484], edx
mov eax, dword [0x410d38]
add eax, dword [ebp - 0x4484]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x4484]
add ecx, 1
mov dword [ebp - 0x4484], ecx
mov edx, dword [0x410d38]
add edx, dword [ebp - 0x4484]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x4484]
add eax, 1
mov dword [ebp - 0x4484], eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x4484]
add edx, 1
mov dword [ebp - 0x4484], edx
mov eax, dword [0x410d38]
add eax, dword [ebp - 0x4484]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x4484]
add ecx, 1
mov dword [ebp - 0x4484], ecx
mov edx, dword [0x410d38]
add edx, dword [ebp - 0x4484]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x4484]
add eax, 1
mov dword [ebp - 0x4484], eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
mov byte [ecx], 0xe9
mov edx, dword [ebp - 0x4484]
add edx, 1
mov dword [ebp - 0x4484], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4464], eax
mov ecx, dword [0x410d38]
sub ecx, dword [ebp - 0x4464]
sub ecx, 5
mov dword [0x415074], ecx
mov edx, dword [ebp - 0x4464]
mov dword [ebp - 0x448c], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [0x410d38]
mov edx, dword [ebp - 0x4484]
add edx, 4
sub ecx, edx
mov dword [ebp - 0x4460], ecx
push 4
lea eax, [ebp - 0x4460]
push eax
mov ecx, dword [0x410d38]
add ecx, dword [ebp - 0x4484]
push ecx
call fcn.00406a80
add esp, 0xc
mov byte [ebp - 0x4480], 0xe9
push 4
push 0x415074
lea edx, [ebp - 0x447f]
push edx
call fcn.00406a80
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0x32
mov ecx, dword [ebp - 0x448c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x40485e
xor eax, eax
jmp 0x404913
mov edx, dword [ebp - 0x448c]
mov dword [ebp - 0x446c], edx
mov eax, dword [ebp - 0x446c]
mov cl, byte [ebp - 0x4480]
mov byte [eax], cl
mov edx, dword [ebp - 0x446c]
add edx, 1
mov dword [ebp - 0x446c], edx
mov eax, dword [ebp - 0x446c]
mov cl, byte [ebp - 0x447f]
mov byte [eax], cl
mov edx, dword [ebp - 0x446c]
add edx, 1
mov dword [ebp - 0x446c], edx
mov eax, dword [ebp - 0x446c]
mov cl, byte [ebp - 0x447e]
mov byte [eax], cl
mov edx, dword [ebp - 0x446c]
add edx, 1
mov dword [ebp - 0x446c], edx
mov eax, dword [ebp - 0x446c]
mov cl, byte [ebp - 0x447d]
mov byte [eax], cl
mov edx, dword [ebp - 0x446c]
add edx, 1
mov dword [ebp - 0x446c], edx
mov eax, dword [ebp - 0x446c]
mov cl, byte [ebp - 0x447c]
mov byte [eax], cl
mov edx, dword [ebp - 0x446c]
add edx, 1
mov dword [ebp - 0x446c], edx
jmp 0x404911
push 0x10
push 0x4014c0
push 0x4014c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov esp, ebp
pop ebp
ret