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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x14d8
call fcn.1004dc30
mov eax, dword [0x100a049c]
xor eax, esp
mov dword [esp + 0x14d4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x400
mov dword [esp + 0x30], eax
mov edi, ecx
lea eax, [esp + 0xdc]
mov dword [esp + 0x14], edi
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.1003b0a0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xfb
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 + 0xec]
push str._s_t__d__d___INFO____s:_d__start_Com_ReadFileFromClients_n
push eax
call fcn.10007a40
lea ecx, [esp + 0xf4]
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fef0
sub ecx, edx
lea eax, [esp + 0xd8]
push ecx
push eax
call fcn.1003b1f0
add esp, 8
cmp dword [edi + 0x80], 0xffffffff
jne 0x1002ff93
push 0x400
lea eax, [esp + 0xdc]
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.1003b0a0
push 0xfd
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 + 0xec]
push str._s_t__d__d___ERROR____s:_d__ReadFileFromClient_mHandle_INVALID_HANDLE_VALUE_n
push eax
call fcn.10007a40
lea ecx, [esp + 0xf4]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ff80
lea eax, [esp + 0xd8]
jmp 0x10030576
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov ecx, edi
call fcn.1002fb60
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
cmp eax, 1
jge 0x10030038
push 0x400
lea eax, [esp + 0xdc]
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.1003b0a0
push dword [esp + 0x18]
push 0x106
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 + 0xf0]
push str._s_t__d__d___ERROR____s:_d__ReadDataSize___d_n
push eax
call fcn.10007a40
lea ecx, [esp + 0xf8]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030025
lea eax, [esp + 0xd8]
jmp 0x10030576
push eax
call fcn.1005d56a
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.10050650
add esp, 0xc
mov dword [esp + 0x28], esi
nop dword [eax]
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 + 0xc]
call eax
add esi, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
test eax, eax
jle 0x100304dc
cmp esi, dword [esp + 0x18]
jge 0x100301aa
push 0x400
lea eax, [esp + 0xdc]
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
call fcn.1003b0a0
push esi
push pe_nt_image_headers32
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 + 0xf0]
push str._s_t__d__d___ERROR____s:_d__after_read_file_with_size__d_n
push eax
call fcn.10007a40
lea ecx, [esp + 0xf8]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030105
sub ecx, edx
lea eax, [esp + 0xd8]
push ecx
push eax
call fcn.1003b1f0
mov ecx, dword [esp + 0x28]
add esp, 8
mov eax, dword [esp + 8]
cmp dword [esp + 0x14], ecx
jne 0x10030191
cmp eax, 0x1e
jl 0x10030191
mov esi, ecx
xor edi, edi
movsx eax, byte [esi]
push eax
call fcn.10063e00
add esp, 4
test eax, eax
je 0x10030185
inc edi
inc esi
cmp edi, 0xa
jl 0x10030136
xor eax, eax
nop
cmp byte [esi], 0x30
jne 0x10030185
inc eax
inc esi
cmp eax, 0xa
jl 0x10030150
xor edi, edi
nop
movsx eax, byte [esi]
push eax
call fcn.10063e00
add esp, 4
test eax, eax
je 0x10030185
inc edi
inc esi
cmp edi, 0xa
jl 0x10030160
mov esi, dword [esp + 0xc]
sub dword [esp + 8], 0x1e
sub esi, 0x1e
jmp 0x10030189
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 0x100304ea
push 0x10094b20
push str.cncomm
call fcn.1004f8b0
add esp, 8
test eax, eax
jne 0x10030364
push str.pcomm
push str.cncomm
call fcn.1004f8b0
add esp, 8
test eax, eax
je 0x10030364
push 0x1009650c
push str.getConfigSaved.xml
call fcn.1005e6d9
add esp, 8
mov dword [esp + 8], eax
test eax, eax
jne 0x10030291
push 0x400
push eax
lea eax, [esp + 0x8e0]
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x80], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x70]
movaps xmmword [esp + 0x70], xmm0
call fcn.1003b0a0
push 0x167
push 0x10097378
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x8ec]
push str._s_t__d__d___ERROR____s:_d__File:_Can_Not_Open_To_Read__n
push eax
call fcn.10007a40
lea ecx, [esp + 0x8f4]
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030270
sub ecx, edx
lea eax, [esp + 0x8d8]
push ecx
push eax
call fcn.1003b1f0
add esp, 8
xor edi, edi
jmp 0x10030368
push esi
call fcn.1005d56a
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10050650
add esp, 0xc
push dword [esp + 8]
push esi
push 1
push edi
call fcn.10065b2a
add esp, 0x10
cmp eax, esi
jae 0x10030356
push 0x400
lea eax, [esp + 0xcdc]
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0xa0], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x90]
movaps xmmword [esp + 0x90], xmm0
call fcn.1003b0a0
push 0x16e
push 0x10097378
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0xcec]
push str._s_t__d__d___ERROR____s:_d__File:__Read_Failed_n
push eax
call fcn.10007a40
lea ecx, [esp + 0xcf4]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030338
sub ecx, edx
lea eax, [esp + 0xcd8]
push ecx
push eax
call fcn.1003b1f0
add esp, 8
xor edi, edi
jmp 0x10030368
push dword [esp + 8]
call fcn.1005e8a8
add esp, 4
jmp 0x10030368
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
or esi, 0xffffffff
xor ecx, ecx
test edx, edx
je 0x1003038d
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x1008c380]
cmp ecx, edx
jb 0x10030375
push 0x400
lea eax, [esp + 0x10dc]
not esi
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0xc0], 0
xorps xmm0, xmm0
lea ecx, [esp + 0xb0]
movaps xmmword [esp + 0xb0], xmm0
call fcn.1003b0a0
push esi
push dword [esp + 0x28]
push 0x133
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 + 0xc8]
push eax
lea eax, [esp + 0x10f4]
push str._s_t__d__d___INFO____s:_d__sendCrc___lu__recvCrc___lu_n
push eax
call fcn.10007a40
lea ecx, [esp + 0x10fc]
add esp, 0x24
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030410
sub ecx, edx
lea eax, [esp + 0x10d8]
push ecx
push eax
call fcn.1003b1f0
add esp, 8
lea eax, [esp + 0x4d8]
push 0x400
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x60], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x50]
movaps xmmword [esp + 0x50], xmm0
call fcn.1003b0a0
cmp esi, dword [esp + 0x24]
je 0x1003059a
push 0x135
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 + 0x60]
push eax
lea eax, [esp + 0x4ec]
push str._s_t__d__d___ERROR____s:_d__CRC_check_error__retry..._n
push eax
call fcn.10007a40
lea ecx, [esp + 0x4f4]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100304a0
sub ecx, edx
lea eax, [esp + 0x4d8]
push ecx
push eax
call fcn.1003b1f0
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 0x100304ea
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 0x10030060
push 0x400
lea eax, [esp + 0x4dc]
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x60], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x50]
movaps xmmword [esp + 0x50], xmm0
call fcn.1003b0a0
push 0x143
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 + 0x60]
push eax
lea eax, [esp + 0x4ec]
push str._s_t__d__d___ERROR____s:_d__read_file_ERROR___n
push eax
call fcn.10007a40
lea ecx, [esp + 0x4f4]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030568
lea eax, [esp + 0x4d8]
sub ecx, edx
push ecx
push eax
call fcn.1003b1f0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x14d4]
xor ecx, esp
call fcn.1004ccd9
mov esp, ebp
pop ebp
ret 4
push 0x13c
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 + 0x60]
push eax
lea eax, [esp + 0x4ec]
push str._s_t__d__d___INFO____s:_d__read_config_data_ok_n
push eax
call fcn.10007a40
lea edx, [esp + 0x4f4]
add esp, 0x1c
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100305d6
sub edx, ecx
lea eax, [esp + 0x4d8]
push edx
push eax
call fcn.1003b1f0
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 + 0x14dc]
mov dword [eax], edi
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.1004ccd9
mov esp, ebp
pop ebp
ret 4