Function at 0x40e560
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x6c
mov eax, dword [0x52d080]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x6c], 0x7fd4fdee
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
sub eax, 0x91d4b322
je 0x40e8e0
jmp 0x40e58e
mov eax, dword [ebp - 0x70]
sub eax, 0x9c34cd93
je 0x40ea6d
jmp 0x40e5a1
mov eax, dword [ebp - 0x70]
sub eax, 0x9dba6c4e
je 0x40e918
jmp 0x40e5b4
mov eax, dword [ebp - 0x70]
sub eax, 0xb4e453f4
je 0x40ea8d
jmp 0x40e5c7
mov eax, dword [ebp - 0x70]
sub eax, 0xd49d8524
je 0x40e7ab
jmp 0x40e5da
mov eax, dword [ebp - 0x70]
sub eax, 0xdffae030
je 0x40ec1e
jmp 0x40e5ed
mov eax, dword [ebp - 0x70]
sub eax, 0xfe1db484
je 0x40ea2e
jmp 0x40e600
mov eax, dword [ebp - 0x70]
sub eax, 0xc79e988
je 0x40ebc7
jmp 0x40e613
mov eax, dword [ebp - 0x70]
sub eax, 0xd4c8cd7
je 0x40ebf2
jmp 0x40e626
mov eax, dword [ebp - 0x70]
sub eax, 0x1d3f84f6
je 0x40ebe6
jmp 0x40e639
mov eax, dword [ebp - 0x70]
sub eax, 0x1e6606c5
je 0x40e902
jmp 0x40e64c
mov eax, dword [ebp - 0x70]
sub eax, 0x221e45ee
je 0x40ebb1
jmp 0x40e65f
mov eax, dword [ebp - 0x70]
sub eax, 0x3781afff
je 0x40e9b0
jmp 0x40e672
mov eax, dword [ebp - 0x70]
sub eax, 0x3be0599d
je 0x40eba5
jmp 0x40e685
mov eax, dword [ebp - 0x70]
sub eax, 0x51f1f014
je 0x40e962
jmp 0x40e698
mov eax, dword [ebp - 0x70]
sub eax, 0x607c5c34
je 0x40e935
jmp 0x40e6ab
mov eax, dword [ebp - 0x70]
sub eax, 0x6e94cf72
je 0x40ec43
jmp 0x40e6be
mov eax, dword [ebp - 0x70]
sub eax, 0x70e70b7a
je 0x40ea3a
jmp 0x40e6d1
mov eax, dword [ebp - 0x70]
sub eax, 0x719d2452
je 0x40ec62
jmp 0x40e6e4
mov eax, dword [ebp - 0x70]
sub eax, 0x72d94b51
je 0x40eb4d
jmp 0x40e6f7
mov eax, dword [ebp - 0x70]
sub eax, 0x7fd4fdee
je 0x40e70f
jmp 0x40e70a
jmp 0x40eca3
push eax
sub esp, 8
mov eax, esp
mov dword [ebp - 0x64], eax
push eax
mov eax, esp
mov dword [ebp - 0x60], eax
push eax
mov eax, esp
mov dword [ebp - 0x5c], eax
push eax
mov eax, esp
mov dword [ebp - 0x58], eax
push eax
mov eax, esp
mov dword [ebp - 0x54], eax
push eax
mov eax, esp
mov dword [ebp - 0x50], eax
push eax
mov eax, esp
mov dword [ebp - 0x4c], eax
push eax
mov eax, esp
mov dword [ebp - 0x48], eax
push eax
mov eax, esp
mov dword [ebp - 0x44], eax
push eax
mov eax, esp
mov dword [ebp - 0x40], eax
push eax
mov eax, esp
mov dword [ebp - 0x3c], eax
push eax
mov eax, esp
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
xor ecx, ecx
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0xc
call fcn.0041d750
add esp, 0xc
lea eax, str.ntdll.dll
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov eax, dword [ebp - 0x60]
mov dword [eax], ecx
mov dword [ebp - 0x6c], 0xd49d8524
jmp 0x40eca3
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
sub esp, 0x10
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xc
call sub.KERNEL32.dll_K32GetModuleInformation
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x5c]
mov dword [eax], ecx
lea eax, str.c:windows_system32_ntdll.dll
xor ecx, ecx
sub esp, 0x1c
mov dword [esp], eax
mov dword [esp + 4], 0x80000000
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov eax, dword [ebp - 0x58]
mov dword [eax], ecx
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
xor ecx, ecx
sub esp, 0x18
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1000002
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov eax, dword [ebp - 0x54]
mov dword [eax], ecx
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
xor ecx, ecx
sub esp, 0x14
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov eax, dword [ebp - 0x50]
mov dword [eax], ecx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x4c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov edx, dword [eax + 0x3c]
xor eax, eax
sub eax, ecx
xor ecx, ecx
sub ecx, edx
add eax, ecx
xor ecx, ecx
sub ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], ecx
mov eax, dword [ebp - 0x44]
mov word [eax], 0
mov dword [ebp - 0x6c], 0x91d4b322
jmp 0x40eca3
mov eax, dword [ebp - 0x44]
movzx eax, word [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov ax, word [eax + 6]
mov word [ebp - 0x2e], ax
mov dword [ebp - 0x6c], 0x1e6606c5
jmp 0x40eca3
mov ax, word [ebp - 0x2e]
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x6c], 0x9dba6c4e
jmp 0x40eca3
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x2c]
mov eax, 0xd4c8cd7
mov ecx, 0x607c5c34
cmp edx, esi
cmovl eax, ecx
mov dword [ebp - 0x6c], eax
jmp 0x40eca3
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
add eax, 0x203d6f1c
add eax, 0x18
sub eax, 0x203d6f1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
movzx eax, word [eax + 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x6c], 0x51f1f014
jmp 0x40eca3
mov eax, dword [0x52e54c]
mov ecx, dword [0x52e548]
mov edx, eax
add edx, 0x12e3f27b
sub edx, 1
sub edx, 0x12e3f27b
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x719d2452
mov ecx, 0x3781afff
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x6c], eax
jmp 0x40eca3
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
xor eax, eax
sub eax, edx
sub ecx, eax
mov eax, dword [ebp - 0x44]
movzx eax, word [eax]
imul eax, eax, 0x28
add ecx, 0x1fe9b10e
add ecx, eax
sub ecx, 0x1fe9b10e
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [0x52e54c]
mov ecx, dword [0x52e548]
mov edx, eax
add edx, 0x1fb1e4f3
sub edx, 1
sub edx, 0x1fb1e4f3
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x719d2452
mov ecx, 0xfe1db484
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x6c], eax
jmp 0x40eca3
mov dword [ebp - 0x6c], 0x70e70b7a
jmp 0x40eca3
mov ecx, dword [ebp - 0x20]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], 0x42cca1
call fcn.00421050
add esp, 8
mov edx, eax
mov eax, 0x9c34cd93
mov ecx, 0x3be0599d
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x6c], eax
jmp 0x40eca3
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
add eax, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x6c], 0xb4e453f4
jmp 0x40eca3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
xor eax, eax
sub eax, edx
xor edx, edx
sub edx, esi
add eax, edx
xor edx, edx
sub edx, eax
mov eax, dword [ebp - 0x3c]
sub esp, 0x10
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 0
setne cl
and cl, 1
mov eax, dword [ebp - 0x38]
mov byte [eax], cl
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
sub edx, 0xf648ced5
add edx, eax
add edx, 0xf648ced5
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
sub ecx, 0xb6383739
add ecx, eax
add ecx, 0xb6383739
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov eax, dword [eax + 8]
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0041d8b0
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
add eax, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x6c], 0x72d94b51
jmp 0x40eca3
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
xor eax, eax
sub eax, ecx
xor ecx, ecx
sub ecx, esi
add eax, ecx
xor esi, esi
sub esi, eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 0
setne cl
and cl, 1
mov eax, dword [ebp - 0x38]
mov byte [eax], cl
mov dword [ebp - 0x6c], 0x3be0599d
jmp 0x40eca3
mov dword [ebp - 0x6c], 0x221e45ee
jmp 0x40eca3
mov eax, dword [ebp - 0x44]
mov ax, word [eax]
mov word [ebp - 0xe], ax
mov dword [ebp - 0x6c], 0xc79e988
jmp 0x40eca3
mov cx, word [ebp - 0xe]
xor eax, eax
sub ax, 1
sub cx, ax
mov eax, dword [ebp - 0x44]
mov word [eax], cx
mov dword [ebp - 0x6c], 0x1d3f84f6
jmp 0x40eca3
mov dword [ebp - 0x6c], 0x91d4b322
jmp 0x40eca3
mov eax, dword [ebp - 0x68]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x6c], 0xdffae030
jmp 0x40eca3
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x6c], 0x6e94cf72
jmp 0x40eca3
mov eax, dword [ebp - 0xc]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ca60
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
xor eax, eax
sub eax, ecx
xor ecx, ecx
sub ecx, edx
add eax, ecx
xor ecx, ecx
sub ecx, eax
mov eax, dword [ebp - 0x44]
movzx eax, word [eax]
imul edx, eax, 0x28
xor eax, eax
sub eax, edx
sub ecx, eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x6c], 0x3781afff
jmp 0x40e578