Function at 0x403b81
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
push esi
push edi
mov dword [ebp - 0x38], 1
push 6
pop ecx
mov esi, 0x4086ac
lea edi, [ebp - 0xa2c]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 4], 0
and dword [ebp - 0xa14], 0
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 0xa0c], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0xa30], 0
and dword [ebp - 0xa10], 0
push 0x104
push 0
lea eax, [ebp - 0x148]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
call fcn.0040393f
mov dword [ebp - 0xa14], eax
cmp dword [ebp - 0xa14], 0x80000000
jb 0x403c0f
cmp dword [ebp - 0xa14], 0x9fffffff
jbe 0x403c1d
and dword [ebp - 0x38], 0
jmp 0x403e38
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xa30], eax
mov eax, dword [ebp - 0xa14]
sub eax, dword [ebp - 0xa30]
mov dword [ebp - 0xa0c], eax
push str.PsGetCurrentProcessId
push dword [ebp - 0xa30]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add eax, dword [ebp - 0xa0c]
mov dword [ebp - 0x40], eax
push 0x4086dc
push dword [ebp - 0xa30]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add eax, dword [ebp - 0xa0c]
mov dword [ebp - 0x3c], eax
push str.MmGetSystemRoutineAddress
push dword [ebp - 0xa30]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add eax, dword [ebp - 0xa0c]
mov dword [0x40cd60], eax
push dword [ebp - 0xa30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp + 8], 3
jne 0x403cac
mov eax, dword [ebp - 0x38]
jmp 0x403e7e
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
sub eax, 5
mov dword [ebp - 0xa2b], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xa26], eax
call fcn.004039d2
mov dword [ebp - 0xa10], eax
cmp dword [ebp - 0xa10], 0
jne 0x403ce9
and dword [ebp - 0x38], 0
jmp 0x403e38
mov eax, dword [ebp - 0x3c]
and eax, 0x1ffff000
mov dword [ebp - 0xa0c], eax
mov eax, dword [ebp - 0xa0c]
mov dword [ebp - 0x28], eax
and dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0x2000
push 4
push 0
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x2000
push 0
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xa10]
call dword [sym.imp.ntdll.dll_ZwMapViewOfSection]
test eax, eax
jge 0x403d44
and dword [ebp - 0x38], 0
jmp 0x403e38
cmp dword [ebp - 4], 0
jne 0x403d58
and dword [ebp - 0x38], 0
jmp 0x403e38
push 0x18
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x3c]
and eax, 0xfff
mov dword [ebp - 0xa0c], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xa0c]
mov dword [ebp - 4], eax
push 0x18
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
and dword [ebp - 0x2c], 0
and dword [ebp - 0x34], 0
mov eax, 0x4038e5
sub eax, dword [ebp - 0x3c]
sub eax, 0x11
mov dword [ebp - 0xa1f], eax
push 0x18
lea eax, [ebp - 0xa2c]
push eax
push dword [ebp - 4]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_NtVdmControl]
push 0x8c0
push 0
lea eax, [ebp - 0xa08]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 0x34], 0
jbe 0x403e02
cmp dword [ebp - 0x2c], 0
jbe 0x403e02
lea eax, [ebp - 0xa08]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call fcn.00401194
mov eax, 0x403892
sub eax, dword [ebp - 0x3c]
sub eax, 0x11
mov dword [ebp - 0xa1f], eax
push 0x18
lea eax, [ebp - 0xa2c]
push eax
push dword [ebp - 4]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_NtVdmControl]
cmp dword [ebp - 0xa10], 0
je 0x403e7b
cmp dword [ebp - 4], 0
je 0x403e7b
movsx eax, byte [ebp - 0x1c]
test eax, eax
je 0x403e7b
push 0x18
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 4]
push dword [ebp - 0xa10]
call dword [sym.imp.ntdll.dll_ZwUnmapViewOfSection]
push dword [ebp - 0xa10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
pop edi
pop esi
leave
ret 4