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

Disassembly:
mov eax, 0x6070f0
call fcn.0059d590
sub esp, 0x4f0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
call fcn.0055b683
mov ecx, esi
call fcn.0055a814
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x55adde
mov edi, 0x104
add esi, 0x1c
push edi
push dword [ebp + 8]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
call esi
mov ecx, dword [ebp - 0x20]
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
mov byte [ecx + 0x11f], bl
call fcn.0055a10e
mov eax, dword [eax]
lea ecx, [ebp - 0x98]
push 0xa
push ecx
push eax
mov dword [ebp - 4], ebx
call fcn.00559faf
pop ecx
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__i64toa]
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00402b84
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x98]
push eax
push 0x691ed0
push str.LOG_s_sCHAT_s
lea eax, [ebp - 0x19c]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x19c]
push 0x67eea4
push eax
mov byte [ebp - 0x99], bl
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x20
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x55adde
call fcn.0051bd44
mov eax, dword [eax + 0x10c]
push 0x10
push eax
lea eax, [ebp - 0x58]
push eax
call esi
lea eax, [ebp - 0x58]
mov byte [ebp - 0x49], bl
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, 1
mov dword [ebp - 0x44], eax
jg 0x55a9dd
mov dword [ebp - 0x44], 2
push 0x691ed0
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0xd], bl
push dword [ebp - 0x30]
lea eax, [ebp - 0x3fc]
push 1
push 0x260
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x55ac17
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov edi, dword [ebp - 0x44]
lea eax, [ecx + 1]
mov dword [ebp - 0x3c], eax
mov eax, ecx
cdq
dec edi
idiv edi
mov eax, ecx
mov ecx, dword [ebp - 0x18]
dec ecx
mov edi, edx
cdq
idiv ecx
mov cl, byte [ebp + edi - 0x58]
mov eax, 0x5baacfb
mov edi, 0x100
add cl, byte [edx + 0x691ed0]
cdq
idiv dword [ebp - 0x3c]
cdq
idiv edi
mov eax, dword [ebp - 0x34]
lea eax, [ebp + eax - 0x39c]
add cl, dl
xor byte [eax], cl
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x200
mov dword [ebp - 0x34], ecx
jl 0x55aa16
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_time]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
pop ecx
mov edi, eax
pop ecx
mov eax, dword [edi + 0x14]
push 0x64
cdq
pop ecx
idiv ecx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
add edx, 0x7d0
inc eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3dc]
push str._d__d__d
push eax
mov dword [ebp - 0x3c], edx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x14
cmp eax, 3
jne 0x55ab23
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x48]
mov eax, dword [ebp - 0x34]
jle 0x55aadc
add eax, 0xb
cmp eax, dword [ebp - 0x38]
jle 0x55aafe
jmp 0x55ab11
lea ecx, [eax - 1]
cmp ecx, dword [ebp - 0x38]
jg 0x55ab11
cmp eax, dword [ebp - 0x38]
jne 0x55aaf9
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x18]
sub eax, dword [ebp - 0x14]
add edx, 7
cmp eax, edx
jge 0x55ab11
cmp ecx, dword [ebp - 0x38]
jne 0x55ab23
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x18]
sub eax, dword [ebp - 0x14]
add ecx, 7
add eax, 0x1e
cmp eax, ecx
jl 0x55ab23
cmp byte [ebp - 0xd], bl
jne 0x55a9ee
mov byte [ebp - 0xd], 1
jmp 0x55a9ee
push 0x260
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], edi
call fcn.0055cc71
push edi
lea eax, [ebp - 0x24]
push edi
push eax
mov dword [ebp - 4], 2
call fcn.00564a31
add esp, 0xc
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 4], 3
jne 0x55ab7e
push 0x196
push str.E:CQ2ClientRelease_18.26.83DRoleChatLog.cpp
push str.pLine
push str.ASSERT
push 0x6765b8
call fcn.005950cb
add esp, 0x14
lea eax, [ebp - 0x3fc]
push 0x10
push eax
mov byte [ebp - 0x3ed], bl
push dword [ebp - 0x28]
mov byte [ebp - 0x19d], bl
call esi
mov eax, dword [ebp - 0x28]
push 0x200
mov byte [eax + 0xf], bl
lea eax, [ebp - 0x39c]
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x60
push eax
call esi
mov eax, dword [ebp - 0x28]
push 0x10
mov byte [eax + 0x25f], bl
lea eax, [ebp - 0x3ec]
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x10
push eax
call esi
mov eax, dword [ebp - 0x28]
push 0x40
mov byte [eax + 0x1f], bl
lea eax, [ebp - 0x3dc]
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x20
push eax
call esi
mov eax, dword [ebp - 0x28]
add esp, 0x30
mov byte [eax + 0x5f], bl
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0x10]
call fcn.0055c683
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x55a9ee
call fcn.004039fd
jmp 0x55a9ee
push dword [ebp - 0x30]
mov edi, dword [sym.imp.MSVCRT.dll_fclose]
call edi
cmp byte [ebp - 0xd], bl
pop ecx
je 0x55ac48
lea eax, [ebp - 0x19c]
push 0x683778
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
je 0x55adde
push eax
call edi
pop ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov eax, dword [ecx + 0x234]
sub eax, dword [ecx + 0x230]
sar eax, 3
cmp eax, ebx
mov dword [ebp - 0x40], eax
jle 0x55add1
jmp 0x55ac6d
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x230]
mov eax, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x28], edi
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x55ac93
push 1
add eax, 4
pop ecx
lock xadd dword [eax], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 4
add eax, 0x120
push eax
lea eax, [ebp - 0x4fc]
push 0x100
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 8]
lea eax, [ebp - 0x4fc]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 0x14
test eax, eax
jne 0x55adb2
push 0x260
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x30], eax
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call fcn.0055cc71
push dword [ebp - 0x30]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push dword [ebp - 0x30]
push eax
call fcn.00564a31
add esp, 0xc
cmp dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 6
jne 0x55ad29
push 0x1b8
push str.E:CQ2ClientRelease_18.26.83DRoleChatLog.cpp
push str.pLine
push str.ASSERT
push 0x6765b8
call fcn.005950cb
add esp, 0x14
lea eax, [edi + 0x10]
push 0x10
push eax
push dword [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0x1c]
push 0x200
mov byte [eax + 0xf], bl
lea eax, [edi + 0x30]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x60
push eax
call esi
mov eax, dword [ebp - 0x1c]
push 0x10
mov byte [eax + 0x25f], bl
lea eax, [edi + 0x20]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x10
push eax
call esi
mov eax, dword [ebp - 0x1c]
add esp, 0x24
mov byte [eax + 0x1f], bl
push dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
push dword [edi + 8]
add eax, 0x20
push dword [edi + 4]
push str._d__d__d
push 0x40
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [ebp - 0x1c]
add esp, 0x18
mov byte [eax + 0x5f], bl
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0x10]
call fcn.0055c683
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 4
cmp ecx, ebx
je 0x55adb2
call fcn.004039fd
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x55adc2
call fcn.004039fd
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x40]
jl 0x55ac6a
push ebx
push 0x405
call fcn.0050ef78
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4