Function at 0x5de1fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0xee37e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x274], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x27c], eax
cmp edi, 0x18
ja 0x5de431
xor esi, esi
lea ebx, [ecx + 0x4b4]
cmp dword [ebx + 0x134], edi
jne 0x5de2c3
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.005c9df6
test al, al
je 0x5de2c3
mov edx, dword [ebp - 0x26c]
xor ecx, ecx
mov eax, dword [ebx + ecx*4 + 0x102]
cmp eax, dword [edx + ecx*4]
jne 0x5de2c3
inc ecx
cmp ecx, 4
jne 0x5de26e
push 8
pop ecx
push 0
push 0
lea esi, [ebx + 0x112]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push 0x20
pop edx
lea ecx, [ebp - 0x24]
call fcn.005c9e99
pop ecx
pop ecx
push 8
pop ecx
lea esi, [ebx + 0x138]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push 8
pop ecx
lea esi, [ebx + 0x158]
lea edi, [ebp - 0x64]
push 0x20
rep movsd dword es:[edi], dword [esi]
pop ebx
jmp 0x5de3b9
inc esi
add ebx, 0x178
cmp esi, 4
jb 0x5de250
push ecx
mov ecx, dword [ebp - 0x274]
lea edx, [ebp - 0x268]
call fcn.005ca01a
pop ecx
lea edx, [ebp - 0x268]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x5de2eb
xor eax, eax
sub edx, ecx
inc eax
mov ecx, edi
shl eax, cl
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push eax
push ecx
push dword [ebp - 0x26c]
lea ecx, [ebp - 0x268]
call fcn.005de04a
add esp, 0x18
lea eax, [ebp - 0x268]
mov ecx, 0x200
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x5de328
mov ebx, dword [ebp - 0x270]
mov esi, dword [ebp + 0xc]
push 0x40
mov ecx, dword [ebx + 0xa94]
lea edx, [ebx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add edx, eax
lea eax, [ecx + 1]
mov dword [ebx + 0xa94], eax
pop ecx
push 8
mov dword [edx + 0x134], edi
lea eax, [edx + 0x112]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
pop ecx
push 8
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x26c]
lea edi, [edx + 0x102]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
lea esi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
pop ecx
lea edi, [edx + 0x138]
push 8
lea esi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
pop ecx
push 0
push 1
lea edi, [edx + 0x158]
lea esi, [ebp - 0x64]
push 0x20
rep movsd dword es:[edi], dword [esi]
pop ebx
mov edx, ebx
mov ecx, eax
call fcn.005c9e99
pop ecx
pop ecx
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x5de3cd
push 8
pop ecx
lea esi, [ebp - 0x64]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x27c]
test esi, esi
je 0x5de3ff
and dword [esi], 0
and dword [esi + 4], 0
xor edx, edx
mov al, byte [ebp + edx - 0x44]
mov ecx, edx
and ecx, 7
xor byte [ecx + esi], al
inc edx
cmp edx, ebx
jb 0x5de3e0
mov ecx, ebx
lea eax, [ebp - 0x44]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x5de3f6
cmp dword [ebp + 0x18], 0
je 0x5de425
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x24]
push 0x100
push eax
push dword [ebp + 8]
add ecx, 0xa9c
call fcn.005e2f75
lea eax, [ebp - 0x24]
mov byte [eax], 0
inc eax
sub ebx, 1
jne 0x5de428
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f3e28
leave
ret 0x20