Function at 0x5fda7680
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x584
xor eax, eax
mov ecx, 0x11
push ebx
mov dword [esp + 0x10], 0
push esi
push edi
lea edi, [esp + 0xcc]
push ebp
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x598]
mov eax, dword [esp + 0x59c]
mov ecx, edx
mov esi, dword [ecx]
add ecx, 4
inc dword [esp + esi*4 + 0xd0]
dec eax
jne 0x5fda76b2
mov eax, dword [esp + 0x59c]
cmp dword [esp + 0xd0], eax
mov eax, dword [esp + 0x5b4]
jne 0x5fda76eb
pop ebp
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x584
ret
mov ebx, dword [eax]
mov ecx, 1
lea eax, [esp + 0xd4]
cmp dword [eax], 0
jne 0x5fda770d
add eax, 4
inc ecx
lea esi, [esp + 0x110]
cmp eax, esi
jbe 0x5fda76f9
mov dword [esp + 0x20], ecx
mov esi, ecx
cmp ebx, ecx
jae 0x5fda7719
mov ebx, esi
mov edi, 0x10
lea eax, [esp + 0x110]
cmp dword [eax], 0
jne 0x5fda7739
sub eax, 4
dec edi
lea ebp, [esp + 0xd0]
cmp eax, ebp
jne 0x5fda7725
mov dword [esp + 0x3c], edi
cmp ebx, edi
jbe 0x5fda7743
mov ebx, edi
mov eax, dword [esp + 0x5b4]
mov dword [eax], ebx
mov eax, 1
shl eax, cl
mov dword [esp + 0x40], eax
cmp ecx, edi
jae 0x5fda777d
lea ebp, [esp + ecx*4 + 0xd0]
mov eax, dword [ebp]
sub dword [esp + 0x40], eax
js 0x5fda779c
add ebp, 4
inc ecx
mov eax, dword [esp + 0x40]
add eax, eax
cmp ecx, edi
mov dword [esp + 0x40], eax
jb 0x5fda7762
lea ecx, [esp + edi*4 + 0xd0]
mov eax, dword [ecx]
sub dword [esp + 0x40], eax
jns 0x5fda77ac
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x584
ret
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x584
ret
add eax, dword [esp + 0x40]
lea ebp, [esp + 0xd4]
mov dword [ecx], eax
xor ecx, ecx
lea eax, [esp + 0x94]
dec edi
mov dword [esp + 0x90], ecx
je 0x5fda77da
add ecx, dword [ebp]
add ebp, 4
mov dword [eax], ecx
add eax, 4
dec edi
jne 0x5fda77cc
xor edi, edi
mov eax, dword [edx]
add edx, 4
test eax, eax
je 0x5fda77f8
lea eax, [esp + eax*4 + 0x8c]
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov dword [esp + ecx*4 + 0x110], edi
inc edi
cmp dword [esp + 0x59c], edi
ja 0x5fda77dc
xor eax, eax
lea edi, [esp + 0x114]
mov edx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], eax
neg edx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x24], 0xffffffff
jl 0x5fda7a8d
mov eax, dword [esp + 0x20]
lea ecx, [esp + eax*4 + 0xd0]
mov dword [esp + 0x30], ecx
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
dec dword [esp + 0x28]
test eax, eax
je 0x5fda7a7b
lea eax, [ebx + edx]
cmp eax, dword [esp + 0x20]
jge 0x5fda795c
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
shl esi, 2
and eax, 0xffff
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x2c], eax
add esi, 4
add edx, ebx
mov edi, dword [esp + 0x38]
inc dword [esp + 0x24]
sub edi, edx
cmp edi, ebx
jbe 0x5fda78a1
movzx edi, bx
mov ecx, dword [esp + 0x20]
mov ebp, 1
sub ecx, edx
shl ebp, cl
cmp ebp, dword [esp + 0x2c]
jbe 0x5fda78d4
mov eax, dword [esp + 0x28]
inc ecx
inc eax
sub ebp, eax
mov eax, dword [esp + 0x30]
cmp edi, ecx
jbe 0x5fda78d4
add ebp, ebp
add eax, 4
cmp ebp, dword [eax]
jbe 0x5fda78d4
sub ebp, dword [eax]
inc ecx
cmp edi, ecx
ja 0x5fda78c4
mov eax, 1
mov edi, dword [esp + 0x5ac]
shl eax, cl
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [edi + ebp*8]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
add dword [esp + 0x1c], edi
mov ebp, dword [esp + 0x1c]
cmp ebp, dword [esp + 0x5b0]
ja 0x5fda7aab
mov dword [esp + esi + 0x4c], eax
test esi, esi
je 0x5fda794f
mov eax, dword [esp + 0x10]
add cl, 0x10
mov dword [esp + esi + 0x8c], eax
mov byte [esp + 0x45], bl
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x44], cl
mov dword [esp + 0x48], eax
mov ecx, edx
sub cl, bl
shr ebp, cl
shl ebp, 3
add ebp, dword [esp + esi + 0x48]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov dword [ebp], eax
mov dword [ebp + 4], edi
lea eax, [ebx + edx]
cmp eax, dword [esp + 0x20]
jl 0x5fda788b
mov cl, byte [esp + 0x20]
mov eax, dword [esp + 0x59c]
sub cl, dl
lea ebp, [esp + eax*4 + 0x114]
mov byte [esp + 0x45], cl
cmp ebp, dword [esp + 0x34]
ja 0x5fda7981
mov byte [esp + 0x44], 0x63
jmp 0x5fda79d6
mov edi, dword [esp + 0x34]
mov esi, dword [edi]
cmp dword [esp + 0x5a0], esi
jbe 0x5fda79aa
mov byte [esp + 0x38], 0x10
cmp esi, 0x100
adc byte [esp + 0x38], 0xff
mov al, byte [esp + 0x38]
mov byte [esp + 0x44], al
jmp 0x5fda79cc
sub esi, dword [esp + 0x5a0]
mov eax, dword [esp + 0x5a8]
add esi, esi
mov ebp, dword [esp + 0x5a4]
mov al, byte [esi + eax]
mov si, word [esi + ebp]
mov byte [esp + 0x44], al
add dword [esp + 0x34], 4
mov word [esp + 0x48], si
mov esi, 1
mov edi, dword [esp + 0x10]
shl esi, cl
mov cl, dl
shr edi, cl
cmp dword [esp + 0x14], edi
jbe 0x5fda7a16
mov eax, dword [esp + 0x18]
lea ebp, [esi*8]
mov dword [esp + 0x38], ebp
lea ecx, [eax + edi*8]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
add edi, esi
mov dword [ecx], eax
mov dword [ecx + 4], ebp
add ecx, dword [esp + 0x38]
cmp dword [esp + 0x14], edi
ja 0x5fda79fd
mov eax, 1
mov cl, byte [esp + 0x20]
dec cl
shl eax, cl
test dword [esp + 0x10], eax
je 0x5fda7a36
xor dword [esp + 0x10], eax
shr eax, 1
test dword [esp + 0x10], eax
jne 0x5fda7a29
mov cl, dl
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
lea esi, [esp + eax*4 + 0x8c]
mov eax, 1
shl eax, cl
dec eax
and eax, dword [esp + 0x10]
cmp eax, dword [esi]
je 0x5fda7851
sub esi, 4
sub edx, ebx
mov eax, 1
mov cl, dl
shl eax, cl
dec eax
dec dword [esp + 0x24]
and eax, dword [esp + 0x10]
cmp eax, dword [esi]
jne 0x5fda7a5b
jmp 0x5fda7851
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x3c], eax
jge 0x5fda783c
cmp dword [esp + 0x40], 0
je 0x5fda7abb
cmp dword [esp + 0x3c], 1
je 0x5fda7abb
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x584
ret
mov eax, 3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x584
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x584
ret