Function at 0x57c82c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x57cad1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x45]
mov cl, 0x65
mov edx, 0x21
call fcn.00402b14
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x45]
mov edx, dword [0x5a57c0]
call fcn.00407af0
lea eax, [ebp - 0x45]
mov dword [ebp - 4], eax
pushal
mov edi, dword [ebp - 4]
mov eax, 0x3617e418
xor dword [edi], eax
mov eax, 0xa935fc2e
xor dword [edi + 4], eax
mov eax, 0x57d872b9
xor dword [edi + 8], eax
mov eax, 0x493db437
xor dword [edi + 0xc], eax
mov eax, dword [edi]
xor eax, dword [edi + 4]
mov ebx, dword [edi + 8]
xor ebx, dword [edi + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
popal
mov eax, dword [0x5a57c4]
call fcn.00403c8c
cmp eax, 0x10
jl 0x57caae
lea eax, [ebp - 0x18]
push eax
mov ecx, 8
mov edx, 1
mov eax, dword [0x5a57c4]
call fcn.00403e90
lea eax, [ebp - 0x1c]
push eax
mov ecx, 8
mov edx, 9
mov eax, dword [0x5a57c4]
call fcn.00403e90
lea ecx, [ebp - 0x4c]
mov edx, 8
mov eax, dword [ebp - 8]
call fcn.00407424
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
call fcn.00403d9c
jne 0x57ca8e
lea ecx, [ebp - 0x4c]
mov edx, 8
mov eax, dword [ebp - 0xc]
call fcn.00407424
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
call fcn.00403d9c
jne 0x57ca8e
mov eax, 0x5a57b0
mov edx, dword [0x5a57c0]
call fcn.00403a64
mov eax, 0x5a57b4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00403cd8
mov dl, 1
mov eax, dword [0x40d000]
call fcn.00402e3c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call fcn.00411924
mov edx, 0x200
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x45]
mov ecx, 0x20
mov eax, dword [ebp - 0x20]
call fcn.0041132c
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x20]
call fcn.0041132c
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x20]
call fcn.0041132c
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x20]
call fcn.0041132c
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x20]
call fcn.0041132c
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x20]
call fcn.0041132c
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x20]
call fcn.0041132c
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x20]
call fcn.0041132c
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x20]
call fcn.0041132c
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 8
jne 0x57c98a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x1ff
pushal
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor edx, edx
mov ebx, 0x3617e418
mov eax, ebx
xor byte [esi + edx], al
ror ebx, 1
xor ebx, 0xa5a5a5a5
inc edx
dec ecx
jne 0x57ca45
popal
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x230]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x22c]
lea eax, [ebp - 0x4c]
call fcn.00403cd8
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x20]
call fcn.0041188c
mov eax, dword [ebp - 0x20]
call fcn.00411924
mov eax, dword [ebp - 0x20]
call fcn.00402e64
jmp 0x57caae
mov eax, 0x5a57b0
mov edx, dword [0x5a57c8]
call fcn.00403a64
mov eax, 0x5a57b4
mov edx, dword [0x5a57cc]
call fcn.00403a64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57cad8
lea eax, [ebp - 0x4c]
call fcn.00403a10
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00403a34
ret