Function at 0x57cd10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x70
call fcn.005c1510
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x84]
push ebp
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x8c]
push ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x5c], 0
call fcn.004bec30
push ebx
call fcn.004beb40
push ebx
mov dword [esp + 0x30], eax
call fcn.004beb40
push ebx
mov dword [esp + 0x44], eax
call fcn.004beb40
mov ebp, eax
push ebx
mov dword [esp + 0x68], ebp
call fcn.004beb40
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x57d22f
push 6
lea eax, [esp + 0x68]
push eax
push edi
call fcn.0057dd10
add esp, 0xc
test eax, eax
je 0x57d21a
cmp eax, 6
jg 0x57d21a
lea eax, [esp + 0x64]
push eax
push esi
push ebp
call fcn.0057c740
add esp, 0xc
test eax, eax
je 0x57d22f
push ebp
call fcn.004bdec0
add esp, 4
test eax, eax
jne 0x57d22f
push edi
push ebx
call fcn.004bdc20
add esp, 8
test eax, eax
je 0x57d22f
push ebp
call fcn.004be0c0
push dword [esp + 0x34]
mov ebx, eax
mov dword [esp + 0x24], ebx
call fcn.004be0c0
mov edi, dword [edi + 4]
push edi
push ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], edi
call fcn.004bea90
add esp, 0x10
test eax, eax
je 0x57d22f
mov eax, dword [ebp + 4]
mov esi, dword [ebp]
mov dword [esp + 0x38], esi
cmp eax, edi
jge 0x57ce3f
mov ecx, dword [esp + 0x14]
lea edi, [esi + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov dword [ebp + 4], edi
mov ebp, dword [esp + 0x24]
push edi
push ebp
call fcn.004bea90
add esp, 8
test eax, eax
je 0x57d22f
mov edx, ebp
mov ebp, dword [edx]
mov dword [esp + 0x20], ebp
mov dword [ebp], 1
cmp edi, 1
jle 0x57ce7a
lea ecx, [edi - 1]
xor eax, eax
lea edi, [ebp + 4]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov dword [edx + 4], edi
push edi
mov edi, dword [esp + 0x38]
push edi
call fcn.004bea90
add esp, 8
test eax, eax
je 0x57d22f
mov edx, dword [esp + 0x14]
mov edi, dword [edi]
mov dword [esp + 0x18], edi
test edx, edx
jle 0x57cea7
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
test ebx, ebx
je 0x57cf89
mov ebx, dword [esi]
test bl, 1
jne 0x57cf81
mov ecx, dword [esp + 0x50]
dec edx
mov eax, dword [ebp]
mov ebp, eax
and ebp, 1
neg ebp
mov ecx, dword [ecx]
mov ecx, dword [ecx]
and ecx, ebp
xor eax, ecx
xor ecx, ecx
mov dword [esp + 0x2c], ecx
test edx, edx
jle 0x57cf5b
mov ecx, dword [esp + 0x20]
mov edx, esi
sub edx, ecx
mov dword [esp + 0x28], 0xfffffffc
sub dword [esp + 0x28], ecx
mov dword [esp + 0x40], edx
lea edi, [ecx + 4]
mov edx, dword [edx + edi]
mov ecx, edx
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
shr eax, 1
mov ebx, dword [esp + 0x2c]
mov dword [esi + ebx*4], ecx
mov ebx, edx
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x38]
add edx, edi
mov ecx, dword [ecx]
mov edx, dword [edx + ecx + 4]
and edx, ebp
xor edx, dword [edi]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [esp + 0x14]
mov dword [edi - 4], ecx
dec edx
mov ecx, dword [esp + 0x2c]
add edi, 4
inc ecx
cmp ecx, edx
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x40]
jl 0x57cf07
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
shr ebx, 1
mov dword [esi + ecx*4], ebx
mov ebx, dword [esp + 0x1c]
shr eax, 1
sub ebx, 1
mov dword [ebp + ecx*4], eax
mov dword [esp + 0x1c], ebx
jne 0x57cec0
jmp 0x57cf85
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp ebx, 0x20
jg 0x57cfa1
mov eax, dword [esi]
test eax, eax
je 0x57d22f
cmp eax, 1
je 0x57d1f1
mov edi, dword [esp + 0x3c]
cmp ebx, edi
jge 0x57cfef
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x3c], ebx
mov ebx, edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x24], esi
mov esi, ecx
mov ecx, dword [edi]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], eax
jmp 0x57cff3
mov eax, dword [esp + 0x18]
xor edi, edi
test edx, edx
jle 0x57d1a2
cmp edx, 8
jb 0x57d14e
lea eax, [eax + edx*4]
lea ecx, [edx*4 - 4]
add eax, 0xfffffffc
add ecx, ebp
cmp ebp, eax
ja 0x57d023
cmp ecx, dword [esp + 0x18]
jae 0x57d14e
lea eax, [edx - 1]
lea eax, [esi + eax*4]
cmp ebp, eax
ja 0x57d035
cmp ecx, esi
jae 0x57d14e
mov eax, dword [esp + 0x10]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp ebp, eax
ja 0x57d04f
mov eax, dword [esp + 0x10]
cmp ecx, eax
jae 0x57d152
mov eax, dword [esp + 0x18]
lea ecx, [edx - 1]
lea ecx, [esi + ecx*4]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x57d06d
cmp ecx, dword [esp + 0x18]
jae 0x57d14e
mov eax, dword [esp + 0x10]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x57d087
mov eax, dword [esp + 0x10]
cmp ecx, eax
jae 0x57d152
mov eax, edx
and eax, reloc.WS2_32.dll_getsockopt
jns 0x57d095
dec eax
or eax, 0xfffffff8
inc eax
mov ebx, dword [esp + 0x18]
mov ecx, edx
sub ecx, eax
mov edx, ebp
mov eax, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], eax
lea ecx, [esi + 0x10]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x2c], eax
mov eax, ebp
sub eax, esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10]
sub eax, ebx
mov dword [esp + 0x28], eax
mov eax, ebx
mov ebx, dword [esp + 0x2c]
sub eax, ebp
mov dword [esp + 0x4c], eax
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x10]
mov ebp, dword [esp + 0x28]
lea ecx, [ecx + 0x20]
add eax, edx
add edi, 8
movups xmm1, xmmword [eax + ebp]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x44]
movups xmm1, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [edx], xmm1
add edx, 0x20
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [esi + ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm0, xmmword [eax + ecx - 0x20]
movups xmm1, xmmword [ebx + ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [eax + ecx - 0x20], xmm1
mov eax, dword [esp + 0x4c]
cmp edi, dword [esp + 0x48]
jl 0x57d0e0
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edi, edx
jge 0x57d1a2
sub eax, esi
lea ecx, [esi + edi*4]
mov dword [esp + 0x4c], eax
sub ebp, esi
mov eax, dword [esp + 0x18]
sub eax, esi
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x4c]
sub edx, edi
mov ebx, dword [esp + 0x44]
mov edi, eax
mov dword [esp + 0x48], eax
nop dword [eax + eax]
mov eax, dword [ecx + ebp]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx + edi - 4]
xor dword [ecx + ebx - 4], eax
sub edx, 1
jne 0x57d180
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x3c]
jne 0x57ceb8
lea eax, [ebx - 1]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
mov eax, dword [esi + edi*4]
test eax, eax
jne 0x57d1d1
test edi, edi
je 0x57d1d1
mov eax, dword [esi + edi*4 - 4]
dec edi
test eax, eax
je 0x57d1c4
push eax
call fcn.004be100
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x10]
shl edi, 5
lea ebx, [edi + eax]
mov dword [esp + 0x1c], ebx
jmp 0x57ceb8
mov ebp, dword [esp + 0x24]
push ebp
call fcn.004be7d0
push ebp
push dword [esp + 0x64]
call fcn.004bdc20
xor ecx, ecx
add esp, 0xc
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [esp + 0x58], ecx
jmp 0x57d22f
push 0
push 0
push 0x6a
push 0x83
push 3
call fcn.004bc0d0
add esp, 0x14
push dword [esp + 0x60]
call fcn.004beab0
mov ecx, dword [esp + 0x80]
add esp, 4
mov eax, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0db0
add esp, 0x70
ret