Function at 0x1000cf10
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x100a0f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x168], ecx
mov eax, dword [ebp - 0x168]
mov dword [eax], 0
mov ecx, dword [ebp - 0x168]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x168]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x168]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x168]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x168]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x168]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x168]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x1fc], edx
push str.NtQueryInformationProcess
lea ecx, [ebp - 0x100]
call fcn.100041e0
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0x168]
add ecx, 8
mov dword [ebp - 0x228], ecx
push str.NtGetContextThread
lea ecx, [ebp - 0xe4]
call fcn.100041e0
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0x168]
add eax, 0xc
mov dword [ebp - 0x22c], eax
push str.NtSetInformationThread
lea ecx, [ebp - 0xc8]
call fcn.100041e0
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0x168]
add edx, 4
mov dword [ebp - 0x230], edx
push str.NtQueryInformationThread
lea ecx, [ebp - 0xac]
call fcn.100041e0
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x168]
add ecx, 0x10
mov dword [ebp - 0x19c], ecx
push 0x10071f60
lea ecx, [ebp - 0x90]
call fcn.100041e0
mov edx, dword [ebp - 0x19c]
mov dword [ebp - 0x78], edx
mov eax, dword [0x1009d030]
add eax, 0x19c
mov dword [ebp - 0x1a0], eax
push str.NtProtectVirtualMemory
lea ecx, [ebp - 0x74]
call fcn.100041e0
mov ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x168]
add edx, 0x14
mov dword [ebp - 0x1a4], edx
push str.NtOpenKeyEx
lea ecx, [ebp - 0x58]
call fcn.100041e0
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x168]
add ecx, 0x18
mov dword [ebp - 0x1a8], ecx
push str.NtOpenKey
lea ecx, [ebp - 0x3c]
call fcn.100041e0
mov edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x100]
mov dword [ebp - 0x23c], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x238], ecx
lea edx, [ebp - 0x23c]
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov ecx, dword [ebp - 0x168]
add ecx, 0x20
call fcn.1000cc60
mov dword [ebp - 0x178], 8
lea eax, [ebp - 0x100]
mov dword [ebp - 0x170], eax
imul ecx, dword [ebp - 0x178], 0x1c
add ecx, dword [ebp - 0x170]
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x1b0], edx
mov eax, dword [ebp - 0x178]
sub eax, 1
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x1b0], 0
jbe 0x1000d177
mov ecx, dword [ebp - 0x170]
sub ecx, 0x1c
mov dword [ebp - 0x170], ecx
mov ecx, dword [ebp - 0x170]
call fcn.10006780
nop
jmp 0x1000d136
mov edx, dword [ebp - 0x168]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x168]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x168]
mov byte [ecx + 0x30], 0
push 0x10071fa8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 0x168]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x168]
cmp dword [eax + 0x2c], 0
jne 0x1000d1c0
jmp 0x1000d6a1
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 0x2c]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.10020c50
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.100062a0
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
push ecx
push 0x10071fb4
call fcn.1000bc80
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.100062a0
mov dword [ebp - 0x1b8], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp - 0x1b8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0xffffffff
jne 0x1000d23f
lea ecx, [ebp - 0x1c]
call fcn.10006840
nop
jmp 0x1000d6a1
push 0
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x188], eax
push 0x40
push 0x1000
mov ecx, dword [ebp - 0x188]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0x168]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0x168]
cmp dword [eax + 0x28], 0
jne 0x1000d29a
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.10006840
nop
jmp 0x1000d6a1
mov dword [ebp - 0x1bc], 0
push 0
lea edx, [ebp - 0x1bc]
push edx
mov eax, dword [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000d2dd
lea ecx, [ebp - 0x1c]
call fcn.10006840
nop
jmp 0x1000d6a1
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + 0x28]
push eax
lea ecx, [ebp - 0x164]
call fcn.10045b70
mov dword [ebp - 0x154], 0
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 0x28]
push ecx
lea ecx, [ebp - 0x164]
call fcn.10045fd0
test eax, eax
jne 0x1000d347
lea ecx, [ebp - 0x164]
call fcn.10045e50
lea ecx, [ebp - 0x1c]
call fcn.10006840
nop
jmp 0x1000d6a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x164]
call fcn.10046000
lea eax, [ebp - 0x224]
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x168]
add ecx, 0x20
mov dword [ebp - 0x1c0], ecx
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x1c8]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0x180], ecx
xor edx, edx
mov byte [ebp - 0x179], dl
jmp 0x1000d3be
lea ecx, [ebp - 0x180]
call fcn.1000e2e0
nop
mov eax, dword [ebp - 0x180]
movsx ecx, byte [eax + 0xd]
test ecx, ecx
jne 0x1000d3d8
mov dword [ebp - 0x18c], 1
jmp 0x1000d3e2
mov dword [ebp - 0x18c], 0
mov dl, byte [ebp - 0x18c]
mov byte [ebp - 0x169], dl
movzx eax, byte [ebp - 0x169]
test eax, eax
je 0x1000d678
mov ecx, dword [ebp - 0x180]
add ecx, 0x10
mov dword [ebp - 0x1d0], ecx
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], edx
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.10004160
mov edx, dword [ebp - 0x190]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x1d8], ecx
mov edx, dword [ebp - 0x1d8]
mov dword [ebp - 0x1dc], edx
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x184]
call fcn.1000c150
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1dc]
push ecx
mov edx, dword [ebp - 0x1e0]
push edx
lea ecx, [ebp - 0x1e4]
call fcn.1000c7d0
nop
lea eax, [ebp - 0x1e4]
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x1e8], ecx
mov edx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], edx
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov edx, dword [ecx]
mov dword [ebp - 0x1f4], edx
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f8], eax
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x198]
mov eax, dword [ebp - 0x218]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x1000d503
mov dword [ebp - 0x194], 1
jmp 0x1000d50d
mov dword [ebp - 0x194], 0
mov dl, byte [ebp - 0x194]
mov byte [ebp - 0x16a], dl
movzx eax, byte [ebp - 0x16a]
test eax, eax
je 0x1000d554
lea ecx, [ebp - 0x11c]
call fcn.10006780
nop
lea ecx, [ebp - 0x224]
call fcn.10004740
lea ecx, [ebp - 0x164]
call fcn.10045e50
lea ecx, [ebp - 0x1c]
call fcn.10006840
nop
jmp 0x1000d6a1
lea ecx, [ebp - 0x11c]
call fcn.10006250
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x200]
push ecx
push 0x10071fbc
call fcn.1000aca0
add esp, 8
lea ecx, [ebp - 0x11c]
call fcn.10006250
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x204]
push edx
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x208], eax
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x208]
sub eax, dword [edx + 0x2c]
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + 0x2c]
push eax
push str.realVA___p___08X
call fcn.1000bb70
add esp, 0xc
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x164]
call fcn.10046730
push eax
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 0x28]
push ecx
mov edx, dword [ebp - 0x104]
mov eax, dword [edx]
push eax
push str.calculatedVA___08X____calculatedRA___p___08X
call fcn.1000ba60
add esp, 0x10
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx]
add edx, 0x10
mov dword [ebp - 0x210], edx
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [ebp - 0x164]
call fcn.10046730
add eax, dword [ebp - 0x150]
mov edx, dword [ebp - 0x104]
mov dword [edx], eax
lea ecx, [ebp - 0x11c]
call fcn.10006780
nop
jmp 0x1000d3b2
mov eax, dword [ebp - 0x168]
mov byte [eax + 0x30], 1
lea ecx, [ebp - 0x224]
call fcn.10004740
lea ecx, [ebp - 0x164]
call fcn.10045e50
lea ecx, [ebp - 0x1c]
call fcn.10006840
nop
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a6b5
mov esp, ebp
pop ebp
ret