Function at 0x100283a0
Capabilities:
Get file size
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100907b8
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x238], 0xffffffff
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x238], edi
cmp edi, 0xffffffff
jne 0x10028462
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [esi + 0x1e]
jmp 0x10028900
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x10028811
cmp eax, 0x1e00000
ja 0x10028811
push 0
lea eax, [ebp - 0x228]
push eax
push 4
lea eax, [ebp - 0x22c]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
test eax, eax
je 0x1002875e
cmp dword [ebp - 0x228], 4
jne 0x1002875e
push 0x5c
push esi
call fcn.1005276f
add esp, 8
test eax, eax
jne 0x100284e0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 3
jmp 0x10028900
add eax, 2
push eax
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.10053320
add esp, 0xc
push 0
lea eax, [ebp - 0x228]
push eax
push 0x208
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x234]
call ebx
test eax, eax
je 0x100286fa
cmp dword [ebp - 0x228], 0x208
jne 0x100286fa
mov ebx, dword [ebp - 0x22c]
lea eax, [ebx + 0xa]
push eax
call fcn.1005218a
add esp, 4
mov esi, eax
mov dword [ebp - 0x230], esi
test esi, esi
jne 0x100285f6
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1002857c
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100285d9
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x100285b8
mov byte [esi + 0xffff], 0
push esi
push str.AddFileToArchive
push 1
mov edx, 0x738
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100285d0
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 5
jmp 0x10028900
push 0
lea eax, [ebp - 0x228]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002843f
mov eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x228], eax
jne 0x1002843f
xor ecx, ecx
mov dword [ebp - 0x23c], ecx
lea ebx, [ebx]
cmp ecx, eax
jge 0x1002864f
movzx eax, byte [esi + ecx]
xor eax, 0xaa
mov byte [esi + ecx], al
inc ecx
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp - 0x22c]
jmp 0x10028630
push 0
lea ecx, [ebp - 0x228]
push ecx
push eax
push esi
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10028692
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x22c]
jne 0x10028692
mov dword [ebp - 4], 0
call fcn.1002883a
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10028900
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10028780
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x100287d5
mov byte [esi + 0xffff], 0
push esi
push str.AddFileToArchive
push 1
mov edx, 0x744
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100287ed
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10028780
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x100287d5
mov byte [esi + 0xffff], 0
push esi
push str.AddFileToArchive
push 1
mov edx, 0x733
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100287ed
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1002879a
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100287f6
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x100287d5
mov byte [esi + 0xffff], 0
push esi
push str.AddFileToArchive
push 1
mov edx, 0x728
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100287ed
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [ebx + 0x1e]
jmp 0x10028900
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 0x15
jmp 0x10028900
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret