Function at 0x1006cfe
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x100cda4]
push ebx
push esi
push edi
mov esi, 0x1006cc2
lea edi, [ebp - 0x20c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
xor eax, eax
push 0x7f
pop ecx
lea edi, [ebp - 0x202]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
mov edx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x238], bx
lea edi, [ebp - 0x236]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x254], ebx
lea edi, [ebp - 0x250]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
cmp edx, ebx
lea edi, [ebp - 0x22c]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x224], ebx
je 0x1007055
cmp dword [ebp + 0xc], ebx
je 0x1007055
push 0xffdf0030
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010045dc
push 0x1006cce
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010045dc
mov eax, dword [0x100fe8c]
mov esi, dword [eax + 0x44]
mov ecx, dword [0x100fe88]
mov eax, dword [eax + 0x50]
xor esi, ecx
xor eax, ecx
cmp esi, ebx
mov dword [ebp - 0x23c], eax
je 0x1007055
cmp eax, ebx
je 0x1007055
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x20
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24c], eax
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x254]
push eax
push 0x100021
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x254], 0x18
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x248], 0x240
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x1006ff7
push dword [ebp - 0x214]
lea eax, [ebp - 0x254]
push 0x1000000
push 0x10
push ebx
push eax
push 0xd
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x24c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x1006ff7
push ebx
lea eax, [ebp - 0x224]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_MmSectionObjectType]
push ebx
push dword [eax]
push 0xd
push dword [ebp - 0x218]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x1006ff7
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
call esi
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x1006ff7
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x3c]
lea esi, [eax + edx]
mov eax, dword [ebp - 0x228]
movzx edi, word [esi + 6]
mov eax, dword [eax]
sub eax, dword [ebp + 0xc]
cmp edi, ebx
lea ecx, [esi + 0xf8]
mov dword [ebp - 0x210], ebx
jbe 0x1006f4e
mov edi, dword [ecx + 0xc]
add edi, edx
lea ebx, [eax + edx]
cmp ebx, edi
jb 0x1006f37
mov ebx, dword [ecx + 8]
add ebx, edi
lea edi, [eax + edx]
cmp edi, ebx
jbe 0x1006f4c
movzx edi, word [esi + 6]
add ecx, 0x28
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], edi
jb 0x1006f1f
xor ebx, ebx
mov edx, dword [ecx + 0x14]
sub edx, dword [ecx + 0xc]
mov edi, dword [ebp - 0x228]
add edx, eax
mov eax, dword [edi + 8]
mov dword [0x100cef8], eax
shl eax, 2
push 0x73487442
push eax
push ebx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x220], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, ebx
mov dword [0x100ceec], eax
jne 0x1006f9b
mov dword [ebp - 0x210], 0xc000009a
jmp 0x1006ff7
push ebx
lea ecx, [ebp - 0x25c]
push ecx
push dword [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x1006ff7
xor ecx, ecx
cmp dword [edi + 8], ebx
jbe 0x1006ff7
mov eax, dword [0x100ceec]
mov edx, dword [ebp + 0xc]
sub edx, dword [esi + 0x34]
lea eax, [eax + ecx*4]
add dword [eax], edx
mov eax, dword [0x100ceec]
mov edx, dword [0x100cef4]
lea eax, [eax + ecx*4]
xor dword [eax], edx
inc ecx
cmp ecx, dword [edi + 8]
jb 0x1006fd1
cmp dword [ebp - 0x21c], ebx
je 0x1007011
push dword [ebp - 0x21c]
call dword [ebp - 0x23c]
mov dword [ebp - 0x21c], ebx
mov ecx, dword [ebp - 0x224]
cmp ecx, ebx
je 0x1007021
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 0x218], ebx
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
je 0x100703d
push dword [ebp - 0x218]
call esi
mov dword [ebp - 0x218], ebx
cmp dword [ebp - 0x214], ebx
je 0x100704d
push dword [ebp - 0x214]
call esi
mov eax, dword [ebp - 0x210]
jmp 0x100705a
mov eax, 0xc0000001
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100911e
leave
ret 8