Function at 0x10035830
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x458
mov eax, dword [0x100a94c0]
xor eax, esp
mov dword [esp + 0x454], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x400
mov dword [esp + 0x30], eax
mov edi, ecx
lea eax, [esp + 0x5c]
mov dword [esp + 0x14], edi
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.10040e60
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x129
push str.ComConnect::ReadFileFromClient
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x6c]
push str._s_t__d__d___INFO____s:_d__start_Com_ReadFileFromClients_n
push eax
call fcn.10008e20
lea ecx, [esp + 0x74]
add esp, 0x1c
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100358c0
sub ecx, edx
lea eax, [esp + 0x58]
push ecx
push eax
call fcn.10040fb0
add esp, 8
cmp dword [edi + 0x80], 0xffffffff
jne 0x1003594c
push 0x400
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.10040e60
push 0x12b
push str.ComConnect::ReadFileFromClient
call esi
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x6c]
push str._s_t__d__d___ERROR____s:_d__ReadFileFromClient_mHandle_INVALID_HANDLE_VALUE_n
push eax
call fcn.10008e20
lea ecx, [esp + 0x74]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035940
jmp 0x10035ea9
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov ecx, edi
call fcn.10035550
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
cmp eax, 1
jge 0x100359dd
push 0x400
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.10040e60
push dword [esp + 0x18]
push 0x134
push str.ComConnect::ReadFileFromClient
call esi
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x70]
push str._s_t__d__d___ERROR____s:_d__ReadDataSize___d_n
push eax
call fcn.10008e20
lea ecx, [esp + 0x78]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100359d1
jmp 0x10035ea9
push eax
call fcn.10065240
add esp, 4
mov dword [esp + 0x20], eax
xor esi, esi
mov dword [esp + 0x14], eax
push dword [esp + 0x18]
push esi
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x28], esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi]
mov ecx, edi
push dword [esp + 0x1c]
push dword [esp + 0x18]
mov eax, dword [eax + 0x10]
call eax
add esi, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
test eax, eax
jle 0x10035e1f
cmp esi, dword [esp + 0x18]
jge 0x10035b4a
push 0x400
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.10040e60
push esi
push 0x146
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x70]
push str._s_t__d__d___ERROR____s:_d__after_read_file_with_size__d_n
push eax
call fcn.10008e20
lea ecx, [esp + 0x78]
add esp, 0x20
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035aa0
sub ecx, edx
lea eax, [esp + 0x58]
push ecx
push eax
call fcn.10040fb0
mov ecx, dword [esp + 0x28]
add esp, 8
mov eax, dword [esp + 8]
cmp dword [esp + 0x14], ecx
jne 0x10035b31
cmp eax, 0x1e
jl 0x10035b31
mov esi, ecx
xor edi, edi
nop
movsx eax, byte [esi]
push eax
call fcn.1006cea0
add esp, 4
test eax, eax
je 0x10035b25
inc edi
inc esi
cmp edi, 0xa
jl 0x10035ad0
xor eax, eax
nop dword [eax]
cmp byte [esi], 0x30
jne 0x10035b25
inc eax
inc esi
cmp eax, 0xa
jl 0x10035af0
xor edi, edi
nop
movsx eax, byte [esi]
push eax
call fcn.1006cea0
add esp, 4
test eax, eax
je 0x10035b25
inc edi
inc esi
cmp edi, 0xa
jl 0x10035b00
mov esi, dword [esp + 0xc]
sub dword [esp + 8], 0x1e
sub esi, 0x1e
jmp 0x10035b29
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x10]
add dword [esp + 0x14], eax
sub dword [esp + 0x1c], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call eax
jmp 0x10035e2d
push 0x1009c610
push str.cncomm
call fcn.10055510
add esp, 8
test eax, eax
jne 0x10035cca
push str.pcomm
push str.cncomm
call fcn.10055510
add esp, 8
test eax, eax
je 0x10035cca
push 0x1009e06c
push str.getConfigSaved.xml
call fcn.1006650f
add esp, 8
mov dword [esp + 8], eax
test eax, eax
jne 0x10035c1e
push 0x400
push eax
lea eax, [esp + 0x60]
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.10040e60
push 0x167
push 0x1009eed8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x6c]
push str._s_t__d__d___ERROR____s:_d__File:_Can_Not_Open_To_Read__n
push eax
call fcn.10008e20
lea ecx, [esp + 0x74]
add esp, 0x1c
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035c00
sub ecx, edx
lea eax, [esp + 0x58]
push ecx
push eax
call fcn.10040fb0
add esp, 8
xor edi, edi
jmp 0x10035cce
push esi
call fcn.10065240
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10056280
add esp, 0xc
push dword [esp + 8]
push esi
push 1
push edi
call fcn.1006b921
add esp, 0x10
cmp eax, esi
jae 0x10035cbc
push 0x400
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.10040e60
push 0x16e
push 0x1009eed8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x6c]
push str._s_t__d__d___ERROR____s:_d__File:__Read_Failed_n
push eax
call fcn.10008e20
lea ecx, [esp + 0x74]
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035cb0
jmp 0x10035c07
push dword [esp + 8]
call fcn.1006679b
add esp, 4
jmp 0x10035cce
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
or esi, 0xffffffff
xor ecx, ecx
test edx, edx
je 0x10035cf8
nop dword [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x10093600]
cmp ecx, edx
jb 0x10035ce0
push 0x400
lea eax, [esp + 0x5c]
not esi
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.10040e60
push esi
push dword [esp + 0x28]
push 0x161
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x74]
push str._s_t__d__d___INFO____s:_d__sendCrc___lu__recvCrc___lu_n
push eax
call fcn.10008e20
lea ecx, [esp + 0x7c]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035d62
sub ecx, edx
lea eax, [esp + 0x58]
push ecx
push eax
call fcn.10040fb0
add esp, 8
lea eax, [esp + 0x58]
push 0x400
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.10040e60
cmp esi, dword [esp + 0x24]
je 0x10035ed1
push 0x163
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x6c]
push str._s_t__d__d___ERROR____s:_d__CRC_check_error__retry..._n
push eax
call fcn.10008e20
lea ecx, [esp + 0x74]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035de6
sub ecx, edx
lea eax, [esp + 0x58]
push ecx
push eax
call fcn.10040fb0
mov edi, dword [esp + 0x18]
add esp, 8
mov ecx, edi
mov eax, dword [edi]
push str.00DataErr0
call dword [eax + 4]
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call eax
mov esi, dword [esp + 0xc]
jmp 0x10035e2d
mov eax, dword [edi]
mov ecx, edi
push str.00DataErr0
call dword [eax + 4]
xor esi, esi
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, 0x14
jl 0x10035a02
push 0x400
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.10040e60
push 0x171
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x6c]
push str._s_t__d__d___ERROR____s:_d__read_file_ERROR___n
push eax
call fcn.10008e20
lea ecx, [esp + 0x74]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035ea2
sub ecx, edx
lea eax, [esp + 0x58]
push ecx
push eax
call fcn.10040fb0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret 4
push 0x16a
push str.ComConnect::ReadFileFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x6c]
push str._s_t__d__d___INFO____s:_d__read_config_data_ok_n
push eax
call fcn.10008e20
lea edx, [esp + 0x74]
add esp, 0x1c
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10035f07
sub edx, ecx
lea eax, [esp + 0x58]
push edx
push eax
call fcn.10040fb0
mov ecx, dword [esp + 0x18]
add esp, 8
mov edx, dword [ecx]
push str.00DataOk00
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x45c]
mov dword [eax], edi
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret 4