Function at 0x5d17c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x5d17cd
mov eax, dword [ebp - 4]
add esp, 0xfffffb9c
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x68]
push ecx
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 3
jne 0x5d1a7a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, dword [ebp + 0xc]
call fcn.005cf50c
mov dword [ebp + 0xc], eax
dec dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.005cf50c
mov dword [ebp + 8], eax
dec dword [ebp + 8]
cmp dword [ebp - 0x44], 0
jne 0x5d1844
mov dword [ebp - 0x44], 1
xor eax, eax
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x2468]
xor ecx, ecx
mov dword [ebp - 0xc], 3
lea eax, [ebp - 0x68]
mov dword [ebp - 0x40], eax
mov ebx, 3
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
imul esi, dword [ebp - 0x30]
mov edi, ecx
shl edi, 7
mov dword [edx + edi*8], esi
inc ecx
add eax, 4
dec ebx
jne 0x5d1866
add dword [ebp - 0x40], 0xc
dec dword [ebp - 0xc]
jne 0x5d185e
inc dword [ebp - 0x30]
add edx, 4
cmp dword [ebp - 0x30], 0x100
jne 0x5d184f
mov dl, 1
mov eax, dword [0x62a81c]
call fcn.00632eb8
mov dword [ebp - 0x10], eax
push 3
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x10]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
sub eax, ebx
jl 0x5d1a48
inc eax
mov dword [ebp - 0x38], eax
mov eax, ebx
dec eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.005cf514
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00634a98
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00634a98
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 1]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.005cf514
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00634a98
mov dword [ebp - 0x20], eax
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
sub edx, eax
jl 0x5d1a1e
inc edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
xor edx, edx
call fcn.005cf504
mov edi, eax
mov eax, dword [ebp - 0xc]
inc eax
mov edx, dword [ebp - 0x34]
call fcn.005cf50c
mov esi, eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + edi]
mov eax, dword [ebp + eax*4 - 0x2468]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
movzx edx, byte [edx + ecx]
add eax, dword [ebp + edx*4 - 0x2068]
mov edx, dword [ebp - 0x18]
movzx edx, byte [edx + esi]
add eax, dword [ebp + edx*4 - 0x1c68]
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx + edi]
add eax, dword [ebp + edx*4 - 0x1868]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
movzx edx, byte [edx + ecx]
add eax, dword [ebp + edx*4 - 0x1468]
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx + esi]
add eax, dword [ebp + edx*4 - 0x1068]
mov edx, dword [ebp - 0x20]
movzx edx, byte [edx + edi]
add eax, dword [ebp + edx*4 - 0xc68]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
movzx edx, byte [edx + ecx]
add eax, dword [ebp + edx*4 - 0x868]
mov edx, dword [ebp - 0x20]
movzx edx, byte [edx + esi]
add eax, dword [ebp + edx*4 - 0x468]
cdq
xor eax, edx
sub eax, edx
cdq
idiv dword [ebp - 0x44]
call fcn.005cf524
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
inc dword [ebp - 0x2c]
inc dword [ebp - 0xc]
dec dword [ebp - 0x3c]
jne 0x5d195a
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00634b60
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00634b60
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00634b60
inc ebx
dec dword [ebp - 0x38]
jne 0x5d18ea
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
inc eax
push eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x10]
inc eax
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00636e04
mov eax, dword [ebp - 0x10]
call fcn.00403e2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc