Function at 0x57d690
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63f5cd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6aee10
call fcn.00409430
mov eax, dword [0x6aee14]
lea ecx, [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], esi
mov eax, dword [0x6aee28]
test al, 1
je 0x57d6ff
lea edi, [esi + 2]
jmp 0x57d8f0
mov edi, dword [ebx + 8]
mov dword [ebp - 0x18], 0
test al, 2
jne 0x57d75a
mov eax, dword [edi + 0xc]
xor edx, edx
xor eax, dword [edi + 4]
xor eax, dword [edi]
xor eax, dword [edi + 8]
div dword [0x6aee20]
mov eax, dword [0x6aee24]
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x57d75a
mov edx, dword [edi]
mov eax, dword [edi + 4]
cmp dword [ecx + 4], edx
jne 0x57d754
cmp dword [ecx + 8], eax
jne 0x57d754
mov eax, dword [ecx + 0xc]
cmp eax, dword [edi + 8]
jne 0x57d751
mov eax, dword [ecx + 0x10]
cmp eax, dword [edi + 0xc]
je 0x57d788
mov eax, dword [edi + 4]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x57d737
mov edx, dword [0x6aee1c]
mov eax, dword [0x6aee18]
cmp edx, eax
jb 0x57d88c
mov edi, 2
lea ecx, [eax + eax]
cmp eax, edi
cmovb ecx, edi
cmp ecx, edx
jae 0x57d792
mov edi, 3
jmp 0x57d8f0
mov edi, 1
jmp 0x57d8f0
push dword [0x6aee28]
mov eax, dword [0x6aee10]
push 0x6aee10
push ecx
mov ecx, 0x6aee10
mov eax, dword [eax + 8]
call eax
mov edi, eax
test edi, edi
je 0x57d8ab
mov al, byte [edi + 0x18]
not al
test al, 1
je 0x57d8ab
mov edx, dword [0x6aee24]
test edx, edx
je 0x57d854
xor esi, esi
mov dword [ebp - 0x18], esi
cmp dword [0x6aee20], esi
jbe 0x57d854
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov ecx, dword [eax + edx]
test ecx, ecx
je 0x57d82a
nop
mov esi, dword [ecx]
xor edx, edx
dec dword [0x6aee1c]
mov eax, dword [ecx + 0x10]
xor eax, dword [ecx + 0xc]
xor eax, dword [ecx + 8]
xor eax, dword [ecx + 4]
div dword [edi + 0x10]
mov eax, dword [edi + 0x14]
lea edx, [eax + edx*4]
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], ecx
mov ecx, esi
inc dword [edi + 0xc]
test esi, esi
jne 0x57d7f0
mov edx, dword [0x6aee24]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
inc esi
add eax, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
mov dword [ecx + edx], 0
add ecx, 4
mov dword [ebp - 0x20], ecx
cmp esi, dword [0x6aee20]
jae 0x57d854
mov edx, dword [0x6aee24]
jmp 0x57d7e7
mov eax, dword [0x6aee10]
mov ecx, 0x6aee10
push edi
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0xc]
mov edi, dword [ebx + 8]
xor edx, edx
mov eax, dword [edi + 0xc]
xor eax, dword [edi + 4]
xor eax, dword [edi]
xor eax, dword [edi + 8]
div dword [0x6aee20]
mov eax, dword [0x6aee24]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
push ecx
mov ecx, dword [0x6aee14]
push 0x6aee14
call fcn.00583040
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x57d8b5
lea edi, [eax + 2]
jmp 0x57d8f0
mov esi, dword [ebp - 0x14]
mov edi, 2
jmp 0x57d8f0
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x10], ecx
mov eax, dword [eax]
mov dword [esi + 0x14], eax
xor esi, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
inc dword [0x6aee1c]
xor edi, edi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x57d902
push ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0057c780
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc