Function at 0x12552
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x15
pop ecx
mov esi, 0x12dbc
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
xor ebx, ebx
lea edi, [ebp - 7]
mov byte [ebp - 0xc], 0x73
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x67
mov byte [ebp - 9], 0x31
mov byte [ebp - 8], bl
stosb byte es:[edi], al
lea edi, [ebp - 0xf]
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x67
mov byte [ebp - 0x11], 0x32
mov byte [ebp - 0x10], bl
stosb byte es:[edi], al
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push ebx
push ebx
push 0x62
push 1
push 3
push 0x80
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xcc], eax
push ebx
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xd4]
push eax
push 0xc0000000
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0xd4], 0x18
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xc8], 0x240
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x12817
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryFullAttributesFile]
test eax, eax
jl 0x1280b
mov eax, dword [ebp - 0xf0]
mov esi, eax
shr esi, 0xc
shl esi, 0xc
mov dword [ebp - 0xa0], eax
cmp esi, eax
jae 0x12664
add esi, 0x1000
push 0x5f49445f
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp - 0x90], edi
cmp edi, ebx
je 0x1280b
push esi
push ebx
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0xa0]
lea eax, [ebp - 0xbc]
push edi
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x98]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], ebx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jl 0x127fa
push ebx
push 0x20
push section.seg2
push 6
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.000121fe
test al, al
je 0x127fa
push edi
call fcn.000121d2
lea ecx, [eax + 0xf8]
mov dword [ebp - 0x94], ecx
xor ecx, ecx
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x9c], ebx
cmp cx, word [eax + 6]
jae 0x127fa
mov esi, dword [ebp - 0x94]
push 3
pop ecx
lea edi, [ebp - 0x14]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
je 0x1273c
add dword [ebp - 0x94], 0x28
movzx ecx, word [eax + 6]
inc dword [ebp - 0x9c]
cmp dword [ebp - 0x9c], ecx
jb 0x1270b
jmp 0x127fa
mov dword [ebp - 0xb4], 0xdeaddead
xor esi, esi
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov dword [ebp + esi*4 - 0x34], eax
inc esi
cmp esi, 8
jb 0x12748
mov eax, dword [ebp - 0x94]
mov edi, dword [eax + 0x14]
add edi, dword [ebp - 0x90]
push 8
pop ecx
push ebx
push 0x20
lea eax, [ebp - 0x34]
push eax
push 6
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x90]
lea esi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
call fcn.000122be
test al, al
je 0x127fa
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xd8]
push eax
push dword [ebp - 0xa0]
push dword [ebp - 0x90]
call fcn.0001202e
test eax, eax
je 0x127fa
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xac]
push ebx
mov dword [ecx + 0x58], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0xa0]
lea eax, [ebp - 0xbc]
push dword [ebp - 0x90]
mov dword [ebp - 0xa4], ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x98]
mov dword [ebp - 0xa8], ebx
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
push 0x5f49445f
push dword [ebp - 0x90]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push dword [ebp - 0x98]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00012950
leave
ret