Function at 0x100576e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x350
mov eax, dword [0x1026f864]
mov edx, dword [ebp + 8]
mov ecx, 0x10057da0
xor eax, ebp
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x348], eax
mov eax, 0x10057c90
cmovne ecx, eax
mov dword [edx + 0x114], ecx
cmp dword [0x1032883c], 0
jne 0x10057904
xor ecx, ecx
xor eax, eax
mov edx, 0xff
inc ecx
lea esi, [ecx + ecx]
mov byte [esp + eax + 0x127], cl
mov byte [esp + eax + 0x28], cl
mov byte [esp + ecx + 0x228], al
xor esi, ecx
mov ecx, esi
xor ecx, 0x11b
cmp esi, edx
cmovle ecx, esi
inc eax
cmp eax, edx
jne 0x1005772e
xor eax, eax
mov byte [0x103288a3], 0
mov byte [0x10328940], 0x63
inc eax
movzx ecx, byte [esp + eax + 0x228]
xor ecx, 0xff
movzx ecx, byte [esp + ecx + 0x28]
mov ebx, ecx
lea esi, [ecx*4]
lea edi, [ecx*8]
lea edx, [ecx + ecx]
xor edi, esi
shl ebx, 4
xor ebx, edi
xor ebx, edx
mov edx, ebx
shr edx, 8
xor edx, ecx
xor edx, ebx
movzx ecx, dl
xor ecx, 0x63
mov byte [ecx + 0x10328840], al
mov byte [eax + 0x10328940], cl
inc eax
cmp eax, 0x100
jne 0x10057768
movzx ecx, byte [esp + 0x231]
movzx eax, byte [esp + 0x236]
movzx edx, byte [esp + 0x235]
mov edi, 0xffffff00
mov dword [esp + 8], ecx
movzx ecx, byte [esp + 0x233]
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
movzx ebx, byte [edi + 0x10328940]
test ebx, ebx
je 0x10057866
movzx ebx, byte [esp + ebx + 0x228]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
add eax, ebx
add ecx, ebx
add edx, ebx
add ebx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x28]
movzx edx, byte [esp + edx + 0x28]
movzx eax, byte [esp + eax + 0x28]
movzx esi, byte [esp + ebx + 0x28]
shl ecx, 8
shl edx, 0x10
or ecx, eax
or edx, ecx
mov ebx, esi
shl ebx, 0x18
or ebx, edx
shl edx, 8
or edx, esi
mov dword [edi*4 + 0x10328e40], ebx
shld ecx, ebx, 0x10
shrd ebx, eax, 8
mov dword [edi*4 + 0x10329240], edx
mov dword [edi*4 + 0x10329640], ecx
mov dword [edi*4 + 0x10329a40], ebx
inc edi
jne 0x100577ef
movzx eax, byte [esp + 0x22a]
movzx edx, byte [esp + 0x229]
movzx ecx, byte [esp + 0x22b]
mov esi, 0xffffff00
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
movzx edi, byte [esi + 0x10328a40]
test edi, edi
je 0x10057901
movzx edi, byte [esp + edi + 0x228]
mov eax, dword [esp + 4]
lea ebx, [eax + edi]
mov eax, dword [esp + 8]
movzx ebx, byte [esp + ebx + 0x28]
add eax, edi
add edi, dword [esp + 0xc]
movzx eax, byte [esp + eax + 0x28]
movzx edx, byte [esp + edi + 0x28]
mov ecx, eax
shl eax, 0x10
shl ecx, 8
or ecx, ebx
mov edi, edx
or eax, ecx
shl edi, 0x18
or edi, eax
shl eax, 8
or eax, edx
mov dword [esi*4 + 0x10327c40], edi
shld ecx, edi, 0x10
shrd edi, ebx, 8
mov dword [esi*4 + 0x10328040], eax
mov dword [esi*4 + 0x10328440], ecx
mov dword [esi*4 + 0x10328840], edi
inc esi
jne 0x10057892
mov esi, dword [ebp + 0x10]
cmp esi, 0x80
je 0x10057928
cmp esi, 0x100
je 0x10057928
mov edi, 0xffffffea
cmp esi, 0xc0
jne 0x10057c78
mov ebx, dword [ebp + 8]
sar esi, 5
lea eax, [esp + 0x328]
lea ecx, [esi + 6]
lea edi, [esi*4]
mov dword [esp + 0x10], ecx
mov dword [ebx + 0x110], ecx
push edi
push dword [ebp + 0xc]
push eax
call fcn.101e35e0
add esp, 0xc
push edi
push dword [ebp + 0xc]
push ebx
call fcn.101e35e0
add esp, 0xc
lea eax, [esi + 7]
mov dword [esp + 8], edi
mov dword [esp + 0x14], eax
shl eax, 4
cmp edi, eax
mov dword [esp + 0xc], eax
jge 0x10057ab2
mov edi, dword [esp + 8]
xor edx, edx
movzx eax, byte [esp + esi*4 + 0x325]
mov cl, byte [esp + 0x328]
xor cl, byte [eax + 0x10328940]
mov byte [esp + 0x328], cl
xor cl, byte [edx + 0x1022e038]
inc edx
movzx eax, byte [esp + esi*4 + 0x326]
mov dword [esp + 4], edx
mov al, byte [eax + 0x10328940]
xor byte [esp + 0x329], al
movzx eax, byte [esp + esi*4 + 0x327]
mov al, byte [eax + 0x10328940]
xor byte [esp + 0x32a], al
movzx eax, byte [esp + esi*4 + 0x324]
mov al, byte [eax + 0x10328940]
xor byte [esp + 0x32b], al
mov byte [esp + 0x328], cl
mov eax, 3
lea ecx, [esp + 0x32b]
cmp esi, 8
jne 0x10057a5b
test eax, eax
jne 0x10057a5b
movzx edx, byte [esp + 0x334]
mov dl, byte [edx + 0x10328940]
xor byte [esp + 0x338], dl
movzx edx, byte [esp + 0x335]
mov dl, byte [edx + 0x10328940]
xor byte [esp + 0x339], dl
movzx edx, byte [esp + 0x336]
mov dl, byte [edx + 0x10328940]
xor byte [esp + 0x33a], dl
movzx edx, byte [esp + 0x337]
lea ebx, [edx + 0x10328940]
lea edx, [esp + 0x33b]
jmp 0x10057a72
mov dl, byte [ecx - 3]
mov dh, byte [ecx - 2]
mov ebx, ecx
xor byte [ecx + 1], dl
xor byte [ecx + 2], dh
mov dl, byte [ecx - 1]
xor byte [ecx + 3], dl
lea edx, [ecx + 4]
mov bl, byte [ebx]
add ecx, 4
xor byte [edx], bl
lea edx, [esi + eax - 1]
dec eax
cmp edx, 4
jne 0x100579fc
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 8]
add eax, edi
push ebx
lea ecx, [esp + 0x32c]
push ecx
push eax
call fcn.101e35e0
add esp, 0xc
add edi, ebx
mov edx, dword [esp + 4]
cmp edi, dword [esp + 0xc]
jl 0x10057983
xor edi, edi
cmp dword [ebp + 0x14], 0
je 0x10057c1e
cmp dword [ebp + 0x10], 0xffffff80
mov eax, dword [esp + 0x10]
jl 0x10057c78
cmp eax, 1
mov ecx, 2
cmovg ecx, eax
mov eax, dword [ebp + 8]
dec ecx
mov dword [esp + 4], ecx
add eax, 0x1f
movzx edi, byte [eax - 0xe]
movzx esi, byte [eax - 0xf]
movzx ebx, byte [eax - 0xd]
movzx ecx, byte [eax - 0xb]
movzx edx, byte [eax - 0xc]
movzx edi, byte [edi + 0x10328940]
movzx esi, byte [esi + 0x10328940]
movzx ebx, byte [ebx + 0x10328940]
movzx ecx, byte [ecx + 0x10328940]
movzx edx, byte [edx + 0x10328940]
mov edi, dword [edi*4 + 0x10328e40]
xor edi, dword [esi*4 + 0x10328a40]
movzx esi, byte [eax - 0xa]
movzx esi, byte [esi + 0x10328940]
xor edi, dword [ebx*4 + 0x10329240]
movzx ebx, byte [eax - 9]
mov esi, dword [esi*4 + 0x10328e40]
movzx ebx, byte [ebx + 0x10328940]
xor edi, dword [edx*4 + 0x10329640]
movzx edx, byte [eax - 8]
xor esi, dword [ecx*4 + 0x10328a40]
movzx ecx, byte [eax - 7]
movzx edx, byte [edx + 0x10328940]
xor esi, dword [ebx*4 + 0x10329240]
movzx ebx, byte [eax - 6]
movzx ecx, byte [ecx + 0x10328940]
movzx ebx, byte [ebx + 0x10328940]
xor esi, dword [edx*4 + 0x10329640]
movzx edx, byte [eax - 5]
mov ebx, dword [ebx*4 + 0x10328e40]
movzx edx, byte [edx + 0x10328940]
xor ebx, dword [ecx*4 + 0x10328a40]
movzx ecx, byte [eax - 4]
xor ebx, dword [edx*4 + 0x10329240]
movzx ecx, byte [ecx + 0x10328940]
movzx edx, byte [eax - 3]
xor ebx, dword [ecx*4 + 0x10329640]
movzx ecx, byte [eax - 2]
movzx edx, byte [edx + 0x10328940]
movzx ecx, byte [ecx + 0x10328940]
mov ecx, dword [ecx*4 + 0x10328e40]
xor ecx, dword [edx*4 + 0x10328a40]
movzx edx, byte [eax - 1]
movzx edx, byte [edx + 0x10328940]
xor ecx, dword [edx*4 + 0x10329240]
movzx edx, byte [eax]
movzx edx, byte [edx + 0x10328940]
xor ecx, dword [edx*4 + 0x10329640]
mov dword [eax - 0xf], edi
mov dword [eax - 0xb], esi
mov dword [eax - 7], ebx
mov dword [eax - 3], ecx
add eax, 0x10
dec dword [esp + 4]
jne 0x10057ae2
xor edi, edi
jmp 0x10057c78
cmp dword [ebp + 0x10], 0xffffff60
mov edx, dword [esp + 0x10]
jl 0x10057c78
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
shl edx, 4
xor edi, edi
xor eax, eax
sar esi, 1
add edx, ecx
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
inc eax
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm0
movaps xmm0, xmmword [ecx]
movaps xmmword [edx], xmm0
add edx, 0xfffffff0
movsd xmm0, qword [esp + 0x18]
movsd xmm1, qword [esp + 0x20]
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
add ecx, 0x10
cmp eax, esi
jl 0x10057c3d
mov ecx, dword [esp + 0x348]
xor ecx, ebp
call fcn.101e05ab
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret