Function at 0x57ff50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63f71d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 esi, ecx
call fcn.00409430
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x18]
test al, 1
je 0x57ffa5
lea esi, [edi + 2]
jmp 0x58018d
xor ebx, ebx
test al, 2
jne 0x580017
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, 3
ror eax, 0x19
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
sub edx, 1
jne 0x57ffb5
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + edx*4]
lea ebx, [eax + edx*4]
test ecx, ecx
je 0x580017
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp dword [ecx + 4], edx
jne 0x580011
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 8]
cmp eax, dword [edi + 4]
mov edi, 0
jne 0x580011
mov edi, dword [ebp + 8]
mov ax, word [ecx + 0xc]
cmp ax, word [edi + 8]
mov edi, 0
jne 0x580011
mov edi, dword [ebp + 8]
mov ax, word [ecx + 0xe]
cmp ax, word [edi + 0xa]
mov edi, 0
je 0x58003e
mov ecx, dword [ecx]
test ecx, ecx
jne 0x57ffd8
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp edx, eax
jb 0x580136
mov ebx, 2
lea ecx, [eax + eax]
cmp eax, ebx
cmovb ecx, ebx
cmp ecx, edx
jae 0x580048
lea esi, [ebx + 1]
jmp 0x58018d
mov esi, 1
jmp 0x58018d
push dword [esi + 0x18]
mov eax, dword [esi]
push esi
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x580150
mov al, byte [ecx + 0x18]
not al
test al, 1
je 0x580150
cmp dword [esi + 0x14], 0
je 0x580104
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x1c], 0
jbe 0x580104
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ebx
nop
mov eax, dword [esi + 0x14]
mov edi, dword [edx + eax]
test edi, edi
je 0x5800e2
nop word [eax + eax]
mov ebx, dword [edi]
lea ecx, [edi + 4]
dec dword [esi + 0xc]
mov edx, 3
xor eax, eax
nop
ror eax, 0x19
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
sub edx, 1
jne 0x5800b0
mov ecx, dword [ebp - 0x18]
div dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [edi], eax
mov dword [ecx], edi
mov edi, ebx
mov ecx, dword [ebp - 0x18]
inc dword [ecx + 0xc]
test ebx, ebx
jne 0x5800a0
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov eax, dword [esi + 0x14]
add edx, 4
mov dword [ebp - 0x20], edx
mov dword [ebx + eax], 0
add ebx, 4
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], eax
cmp eax, dword [esi + 0x10]
jb 0x580090
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
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 0x580120
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea ebx, [eax + edx*4]
push ecx
lea ecx, [esi + 4]
push ecx
mov ecx, dword [ecx]
call fcn.00582680
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x580157
lea esi, [eax + 2]
jmp 0x58018d
mov edi, dword [ebp - 0x14]
mov esi, ebx
jmp 0x58018d
mov eax, dword [ebp + 8]
movq xmm0, qword [eax]
movq qword [edi + 4], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
inc dword [esi + 0xc]
xor esi, esi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x58019f
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.0057b350
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