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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov ecx, dword [0x1045a9a4]
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, dword [0x1045b8f0]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov word [esp + 0xc], ax
mov eax, dword [ebp + 0x14]
push eax
push edi
push ebx
push esi
push str.QIVWGetResInfo__x___x___x___x___in_
push 0x42a
push str......._source_appmsc_luacqivw.c
push ecx
push 2
push edx
call fcn.10062060
add esp, 0x28
test esi, esi
je 0x1000cb03
test ebx, ebx
je 0x1000cb03
test edi, edi
je 0x1000cb03
cmp dword [edi], 0
jne 0x1000c6e1
mov eax, 0x277b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 4
lea eax, [esp + 0x24]
push eax
push 0x7c
push esi
call fcn.100617c0
mov edi, eax
add esp, 0x10
mov dword [esp + 0x1c], edi
cmp edi, 2
jge 0x1000c736
mov ecx, dword [0x1045a9a4]
mov edx, dword [0x1045b8f0]
push 0
push 0
push 0
push esi
push str.invalid_resPath:__s
push 0x436
push str......._source_appmsc_luacqivw.c
push ecx
push 0
push edx
call fcn.10062060
add esp, 0x28
mov edi, 0x277b
jmp 0x1000ca90
mov esi, dword [esp + 0x20]
push 0x1037466c
push esi
call fcn.10061320
add esp, 8
test eax, eax
je 0x1000c783
mov eax, dword [0x1045a9a4]
mov ecx, dword [0x1045b8f0]
push 0
push 0
push 0
push esi
push str.invalid_opType:__s
push 0x43f
push str......._source_appmsc_luacqivw.c
push eax
push 0
push ecx
call fcn.10062060
add esp, 0x28
mov edi, 0x277b
jmp 0x1000ca90
cmp edi, 3
jl 0x1000c79a
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [esp + 0x10], eax
cmp dword [0x1045a8c4], 0
jne 0x1000c815
mov eax, dword [ebp + 0x14]
push str.work_dir
push 0x2c
push 0x3d
push eax
call fcn.10061670
mov esi, eax
add esp, 0x10
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.1005f900
mov edi, eax
test edi, edi
je 0x1000c7fb
mov ecx, dword [0x1045a9a4]
mov edx, dword [0x1045b8f0]
push 0
push 0
push 0
push edi
push str.set_workdir_failed___d
push 0x452
push str......._source_appmsc_luacqivw.c
push ecx
push 0
push edx
call fcn.10062060
jmp 0x1000ca7b
test esi, esi
je 0x1000c815
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x24]
push 0x1037300c
push edi
call fcn.1005f990
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
test esi, esi
jne 0x1000c869
call dword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [eax]
mov edx, dword [0x1045a9a4]
mov eax, dword [0x1045b8f0]
push esi
push esi
push ecx
push edi
push str.open_Res_File_failed___s___d
push 0x45f
push str......._source_appmsc_luacqivw.c
push edx
push esi
push eax
call fcn.10062060
mov edi, 0x2784
jmp 0x1000ca7b
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
call dword [sym.imp.MSVCR100.dll_fseek]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000c8b7
call dword [sym.imp.MSVCR100.dll__errno]
mov edx, dword [eax]
mov eax, dword [0x1045a9a4]
mov ecx, dword [0x1045b8f0]
push 0
push 0
push 0
push edx
push str.Res_File_fseek_error___d
push 0x468
push str......._source_appmsc_luacqivw.c
push eax
push 0
push ecx
call fcn.10062060
jmp 0x1000ca7b
lea edx, [esp + 0xc]
test edx, edx
je 0x1000c8de
mov edi, dword [sym.imp.MSVCR100.dll_fread]
push esi
push 2
mov eax, edx
push 1
push eax
call edi
add esp, 0x10
cmp eax, 2
je 0x1000c918
mov edi, 0xfffffffe
jmp 0x1000c8e1
or edi, 0xffffffff
call dword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [eax]
mov edx, dword [0x1045a9a4]
mov eax, dword [0x1045b8f0]
push 0
push 0
push 0
push ecx
push str.Res_File_fread_error___d
push 0x470
push str......._source_appmsc_luacqivw.c
push edx
push 0
push eax
call fcn.10062060
jmp 0x1000ca7b
cmp byte [esp + 0xd], 3
jne 0x1000ca4b
xor eax, eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0
mov word [esp + 0x11], ax
mov byte [esp + 0x13], al
test ecx, ecx
je 0x1000c954
push esi
push 4
mov edx, ecx
push 1
push edx
call edi
add esp, 0x10
cmp eax, 4
je 0x1000c98f
mov edi, 0xfffffffe
jmp 0x1000c957
or edi, 0xffffffff
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
mov ecx, dword [0x1045a9a4]
mov edx, dword [0x1045b8f0]
push 0
push 0
push 0
push eax
push str.Res_File_fread_error___d
push 0x47e
push str......._source_appmsc_luacqivw.c
push ecx
push 0
push edx
call fcn.10062060
jmp 0x1000ca7b
lea ecx, [esp + 0x10]
call fcn.10015380
mov esi, eax
mov eax, dword [ebp + 0x10]
cmp esi, dword [eax]
jbe 0x1000c9dc
mov ecx, dword [0x1045a9a4]
mov edx, dword [0x1045b8f0]
push 0
push 0
push 0
push 0
push str.infoLen_in__not_enough
push 0x487
push str......._source_appmsc_luacqivw.c
push ecx
push 0
push edx
mov edi, 0x2781
call fcn.10062060
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x1000ca7b
test esi, esi
je 0x1000ca14
mov ecx, dword [esp + 0x18]
push ecx
push esi
push 1
push ebx
call edi
add esp, 0x10
cmp eax, esi
je 0x1000c9f9
mov edi, 0xfffffffe
jmp 0x1000ca17
xor edi, edi
xor eax, eax
test esi, esi
je 0x1000ca0a
xor byte [eax + ebx], 7
inc eax
cmp eax, esi
jb 0x1000ca01
mov edx, dword [ebp + 0x10]
mov dword [edx], esi
jmp 0x1000ca90
or edi, 0xffffffff
call dword [sym.imp.MSVCR100.dll__errno]
mov edx, dword [eax]
mov eax, dword [0x1045a9a4]
mov ecx, dword [0x1045b8f0]
push 0
push 0
push 0
push edx
push str.Res_File_fread_error___d
push 0x490
push str......._source_appmsc_luacqivw.c
push eax
push 0
push ecx
call fcn.10062060
jmp 0x1000ca7b
mov eax, dword [0x1045a9a4]
mov ecx, dword [0x1045b8f0]
push 0
push 0
push 0
push 0
push str.Res_Ver_not_support_
push 0x49d
push str......._source_appmsc_luacqivw.c
push eax
push 0
push ecx
call fcn.10062060
mov edi, 0x61ab
mov eax, dword [esp + 0x3c]
add esp, 0x28
test eax, eax
je 0x1000ca90
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ebx, dword [esp + 0x1c]
xor esi, esi
test ebx, ebx
jle 0x1000cab9
mov eax, dword [esp + esi*4 + 0x20]
test eax, eax
je 0x1000cab4
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [esp + esi*4 + 0x20], 0
inc esi
cmp esi, ebx
jl 0x1000ca9a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000cacb
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov edx, dword [0x1045a9a4]
mov eax, dword [0x1045b8f0]
push 0
push 0
push 0
push edi
push str.QIVWGetResInfo____out___d
push 0x4b8
push str......._source_appmsc_luacqivw.c
push edx
push 2
push eax
call fcn.10062060
add esp, 0x28
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 0x277a
pop ebx
mov esp, ebp
pop ebp
ret 0x10