Function at 0x12edc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
mov edi, 0x206b6444
push edi
xor eax, eax
push 0x400
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call esi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x12f16
mov dword [ebp - 0xc], 0xc0000022
jmp 0x13118
push edi
push 0x100000
push 0
call esi
test eax, eax
mov dword [ebp - 8], eax
je 0x12fa2
xor eax, eax
mov ecx, 0x100
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 5
pop ecx
mov esi, 0x12ebe
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x12f43
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x12f4f
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x12f6c
sub eax, ecx
mov word [ebp - 0x18], ax
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x12f7e
sub eax, ecx
mov word [ebp - 0x16], ax
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jge 0x12fae
mov dword [ebp - 0xc], 0xc0000022
jmp 0x13100
xor esi, esi
push esi
push esi
push 0x868
push 3
push 3
push 0x80
lea eax, [ebp - 0x20]
mov dword [ebp - 0x40], eax
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
push 0xc0100000
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
lea eax, [ebp - 0x20]
push eax
jge 0x1300f
mov dword [ebp - 0xc], 0xc0000022
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x13100
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push esi
lea eax, [ebp - 0x28]
push eax
push 0x100000
push dword [ebp - 8]
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jl 0x13100
mov eax, dword [ebp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x13045
mov ebx, dword [ebp + 0xc]
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x13054
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1306f
push dword [ebp - 4]
mov esi, 0x12ed2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 4]
xor eax, eax
push ebx
stosd dword es:[edi], eax
call fcn.00012e9a
push dword [ebp - 4]
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x130d5
push ebx
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_strstr]
test eax, eax
pop ecx
pop ecx
je 0x130fd
mov edx, dword [ebp + 0x14]
cmp byte [eax], 0x3d
jne 0x130bf
xor esi, esi
inc esi
inc eax
mov cl, byte [eax]
cmp cl, 0x2c
je 0x130fd
test esi, esi
je 0x130d2
cmp cl, 0x20
je 0x130d2
mov byte [edx], cl
inc edx
inc eax
jmp 0x130b6
mov edx, dword [ebp + 0x14]
cmp word [eax], 0x3d
jne 0x130e3
xor esi, esi
inc esi
inc eax
inc eax
mov cx, word [eax]
cmp cx, 0x2c
je 0x130fd
test esi, esi
je 0x130f9
cmp cx, 0x20
je 0x130f9
mov byte [edx], cl
inc edx
inc eax
inc eax
jmp 0x130d8
mov ebx, dword [ebp - 4]
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0
push ebx
call esi
cmp dword [ebp - 8], 0
je 0x13118
push 0
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10