Function at 0x5d02a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x7a8498]
xor ecx, ebp
mov dword [esp + 0x128], ecx
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0xcc], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
pxor xmm0, xmm0
movdqa xmmword [esp + 0xe0], xmm0
movdqa xmmword [esp + 0xf0], xmm0
movdqa xmmword [esp + 0x100], xmm0
movdqa xmmword [esp + 0x110], xmm0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [esi + ecx*4]
inc dword [esp + edi*4 + 0xe0]
inc ecx
cmp edx, ecx
jne 0x5d0347
cmp dword [esp + 0xe0], edx
jne 0x5d036d
xor esi, esi
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], esi
mov dword [eax], esi
jmp 0x5d0779
mov ecx, dword [eax]
xor ebx, ebx
inc ebx
cmp dword [esp + ebx*4 + 0xe0], 0
jne 0x5d0387
inc ebx
cmp ebx, 0x10
jne 0x5d0372
mov ebx, 0x10
cmp ecx, ebx
cmovb ecx, ebx
mov dword [esp + 0x1c], ecx
mov esi, 0xf
cmp dword [esp + esi*4 + 0xe0], 0
jne 0x5d03a4
dec esi
jne 0x5d0395
xor esi, esi
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
cmova ecx, esi
mov dword [esp + 0x28], ecx
mov dword [eax], ecx
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
cmp ebx, esi
jae 0x5d03d4
mov ecx, ebx
sub eax, dword [esp + ecx*4 + 0xe0]
js 0x5d047f
inc ecx
add eax, eax
cmp esi, ecx
jne 0x5d03c0
mov ecx, eax
sub ecx, dword [esp + esi*4 + 0xe0]
js 0x5d047f
mov dword [esp + 0x48], ecx
mov dword [esp + esi*4 + 0xe0], eax
mov dword [esp + 0x64], 0
mov eax, esi
dec eax
je 0x5d040f
xor ecx, ecx
xor edi, edi
add edi, dword [esp + ecx*4 + 0xe4]
mov dword [esp + ecx*4 + 0x68], edi
inc ecx
cmp eax, ecx
jne 0x5d03ff
cmp edx, 2
mov eax, 1
cmovb edx, eax
xor eax, eax
mov dword [esp + 0x24], esi
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x5d0443
mov edi, dword [esp + ecx*4 + 0x60]
mov esi, ebx
lea ebx, [edi + 1]
mov dword [esp + ecx*4 + 0x60], ebx
mov ebx, esi
mov esi, dword [esp + 0x24]
mov ecx, dword [ebp + 0x2c]
mov dword [ecx + edi*4], eax
inc eax
cmp edx, eax
jne 0x5d0420
mov eax, dword [esp + esi*4 + 0x60]
xor ecx, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0xa0], ecx
cmp ebx, esi
mov edi, dword [esp + 0x28]
jle 0x5d0489
cmp dword [esp + 0x48], 0
sete al
cmp esi, 1
sete cl
or cl, al
movzx eax, cl
lea esi, [eax + eax*4]
add esi, 0xfffffffb
jmp 0x5d0779
mov esi, 0xfffffffd
jmp 0x5d0779
mov ecx, edi
shl ecx, 8
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x2c]
lea eax, [ecx + eax*4]
mov dword [esp + 0x4c], eax
mov edx, edi
neg edx
mov eax, dword [esp + 0x1c]
cmp esi, eax
cmovb eax, esi
mov dword [esp + 0x1c], eax
lea eax, [esp + ebx*4]
add eax, 0xe4
mov dword [esp + 0x38], eax
xor eax, eax
dec eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x5c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov edi, dword [esp + ebx*4 + 0xe0]
mov ecx, ebx
dec cl
xor eax, eax
inc eax
shl eax, cl
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], edi
test edi, edi
mov dword [esp + 0x58], ebx
je 0x5d075d
mov edi, dword [esp + 0x28]
lea ecx, [edx + edi]
cmp ebx, ecx
jle 0x5d0626
mov eax, esi
sub eax, ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
cmp edx, eax
mov dword [esp + 0x34], eax
mov esi, eax
cmovb esi, edx
mov edx, dword [esp + 0x24]
sub edx, ecx
cmp edx, edi
cmova edx, edi
mov eax, ebx
mov dword [esp + 0xc], ecx
sub eax, ecx
xor edi, edi
inc edi
mov ecx, eax
shl edi, cl
mov ebx, eax
sub edi, dword [esp + 0x30]
jbe 0x5d0575
mov ebx, eax
cmp eax, edx
jae 0x5d0575
lea ebx, [eax + 1]
cmp ebx, edx
jae 0x5d0575
mov ecx, dword [esp + 0x38]
add edi, edi
sub edi, dword [ecx]
jbe 0x5d0575
inc ebx
add ecx, 4
cmp ebx, edx
jb 0x5d0565
mov ebx, esi
xor esi, esi
inc esi
mov ecx, ebx
shl esi, cl
mov edi, dword [ebp + 0x28]
mov edx, dword [edi]
lea ecx, [edx + esi]
cmp ecx, 0x5a0
ja 0x5d0774
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 0x24]
lea esi, [esi + edx*8]
inc eax
mov dword [esp + 8], eax
mov dword [esp + eax*4 + 0xa0], esi
mov dword [edi], ecx
mov dword [esp + 0x3c], esi
je 0x5d05f4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov dword [esp + eax*4 + 0x60], edx
mov ecx, dword [esp + 0x44]
shr edx, cl
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0xa0]
movzx edi, bl
or edi, dword [esp + 0x54]
or edi, 0xffff0000
mov dword [ecx + edx*8], edi
sub esi, ecx
sar esi, 3
sub esi, edx
mov dword [esp + 0x20], esi
mov dword [ecx + edx*8 + 4], esi
jmp 0x5d05f9
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], esi
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
lea ecx, [edx + edi]
mov eax, dword [esp + 0x34]
sub eax, edi
mov esi, edx
mov dword [esp + 0x44], edx
mov esi, dword [esp + 8]
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x58]
cmp ebx, ecx
jg 0x5d0523
jmp 0x5d0632
mov eax, ebx
sub eax, edx
mov dword [esp + 0x18], eax
mov esi, dword [esp + 8]
mov dword [esp + 0xc], edx
mov eax, 0xc0
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x4c]
mov dword [esp + 8], esi
jae 0x5d0675
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [ebp + 0x10]
mov esi, dword [esp + 0x24]
jae 0x5d067b
mov dword [esp + 0x20], eax
cmp eax, 0x100
mov eax, 0x60
mov ecx, 0
cmovb eax, ecx
add edx, 4
mov dword [esp + 0x2c], edx
jmp 0x5d0695
mov esi, dword [esp + 0x24]
jmp 0x5d0695
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + ecx*4]
add eax, 0x50
add edx, 4
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + ecx*4]
mov dword [esp + 0x20], ecx
xor edx, edx
inc edx
mov ecx, dword [esp + 0x18]
shl edx, cl
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
shr edi, cl
mov edx, dword [esp + 0x40]
cmp edi, edx
mov ecx, dword [esp + 0x3c]
jae 0x5d06e8
shl dword [esp + 0x18], 8
movzx eax, al
add eax, dword [esp + 0x18]
or eax, 0xffff0000
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + edi*8], eax
mov eax, edx
mov edx, dword [esp + 0x20]
mov dword [ecx + edi*8 + 4], edx
mov edx, eax
add edi, dword [esp + 0x14]
cmp edi, eax
jb 0x5d06cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
test eax, edx
mov ecx, 0xffffffff
je 0x5d0701
xor edx, eax
shr eax, 1
test eax, edx
jne 0x5d06f9
xor edx, eax
dec dword [esp + 0x30]
mov eax, ecx
mov ecx, dword [esp + 0xc]
shl eax, cl
not eax
and eax, edx
mov edi, dword [esp + 8]
cmp eax, dword [esp + edi*4 + 0x60]
mov dword [esp + 0x10], edx
jne 0x5d0729
mov eax, edi
mov edx, dword [esp + 0xc]
jmp 0x5d074e
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x5c]
lea ecx, [eax + edx]
sub edx, dword [esp + 0x28]
xor eax, eax
dec eax
shl eax, cl
not eax
and eax, dword [esp + 0x10]
cmp eax, dword [esp + edi*4 + 0x5c]
lea eax, [edi - 1]
mov edi, eax
jne 0x5d072d
mov dword [esp + 8], eax
cmp dword [esp + 0x30], 0
jne 0x5d0504
lea eax, [ebx + 1]
add dword [esp + 0x38], 4
cmp ebx, esi
mov ebx, eax
jne 0x5d04e0
jmp 0x5d0461
mov esi, 0xfffffffc
mov ecx, dword [esp + 0x128]
xor ecx, ebp
call fcn.006c9121
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret