Function at 0x57cd50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63f53d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00409430
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x18]
test al, 1
je 0x57cda5
lea esi, [ebx + 2]
jmp 0x57cfcf
xor esi, esi
test al, 2
jne 0x57ce03
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, 3
ror eax, 0x19
xor eax, dword [ecx]
add ecx, 4
sub edx, 1
jne 0x57cdb5
div dword [edi + 0x10]
mov eax, dword [edi + 0x14]
lea esi, [eax + edx*4]
mov dword [ebp - 0x14], esi
mov esi, dword [esi]
test esi, esi
je 0x57ce00
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
nop dword [eax]
cmp dword [esi + 4], ecx
jne 0x57cdfa
cmp dword [esi + 8], edx
jne 0x57cdfa
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, dword [ebx + 8]
mov ebx, 0
je 0x57ce2c
mov esi, dword [esi]
test esi, esi
jne 0x57cde0
mov esi, dword [ebp - 0x14]
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
cmp edx, eax
jb 0x57cf56
mov esi, 2
lea ecx, [eax + eax]
cmp eax, esi
cmovb ecx, esi
cmp ecx, edx
jae 0x57ce66
mov esi, 3
jmp 0x57cfcf
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov ebx, dword [ebp - 0x10]
jmp 0x57cfcd
push dword [edi + 0x18]
mov eax, dword [edi]
push edi
push ecx
mov ecx, edi
call dword [eax + 8]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x57cf70
mov al, byte [ecx + 0x18]
not al
test al, 1
je 0x57cf70
cmp dword [edi + 0x14], 0
je 0x57cf24
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x18], 0
jbe 0x57cf24
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ebx
mov eax, dword [edi + 0x14]
mov esi, dword [edx + eax]
test esi, esi
je 0x57cf02
nop dword [eax + eax]
mov ebx, dword [esi]
lea ecx, [esi + 4]
dec dword [edi + 0xc]
mov edx, 3
xor eax, eax
nop
ror eax, 0x19
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
sub edx, 1
jne 0x57ced0
mov ecx, dword [ebp - 0x14]
div dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [esi], eax
mov dword [ecx], esi
mov esi, ebx
mov ecx, dword [ebp - 0x14]
inc dword [ecx + 0xc]
test ebx, ebx
jne 0x57cec0
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov eax, dword [edi + 0x14]
add edx, 4
mov dword [ebp - 0x1c], edx
mov dword [ebx + eax], 0
add ebx, 4
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 0x10]
jb 0x57ceb1
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
push 1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, 3
ror eax, 0x19
xor eax, dword [ecx]
add ecx, 4
sub edx, 1
jne 0x57cf40
div dword [edi + 0x10]
mov eax, dword [edi + 0x14]
lea esi, [eax + edx*4]
push ecx
lea ecx, [edi + 4]
push ecx
mov ecx, dword [ecx]
call fcn.00583430
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x57cf75
lea esi, [eax + 2]
jmp 0x57cfcf
mov ebx, dword [ebp - 0x10]
jmp 0x57cfcf
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movq xmm0, qword [eax]
movq qword [ebx + 4], xmm0
mov eax, dword [eax + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
inc dword [edi + 0xc]
mov dword [ebp - 0x10], ebx
xor esi, esi
test ebx, ebx
je 0x57cfe1
push ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.004e6c30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc