Function at 0x5b7a00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44c
mov eax, dword [0x69cffc]
xor eax, esp
mov dword [esp + 0x448], eax
mov eax, dword [esp + 0x450]
mov edx, dword [esp + 0x454]
push ebx
push ebp
mov dword [esp + 0x1c], eax
mov ebp, 4
mov eax, dword [eax + 0x18]
cmp eax, ebp
push esi
cmovl ebp, eax
xor ecx, ecx
push edi
lea eax, [edx + 8]
nop dword [eax]
cmp dword [eax - 8], 0
jne 0x5b7a7b
cmp dword [eax - 4], 0
jne 0x5b7a7a
cmp dword [eax], 0
jne 0x5b7a75
cmp dword [eax + 4], 0
jne 0x5b7a70
add ecx, 4
add eax, 0x10
mov dword [esp + 0x20], ecx
cmp ecx, 0xff
jle 0x5b7a40
mov esi, 0xff
jmp 0x5b7a9b
add ecx, 3
jmp 0x5b7a7b
add ecx, 2
jmp 0x5b7a7b
inc ecx
mov esi, 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], esi
cmp ecx, esi
jge 0x5b7a9f
nop dword [eax]
cmp dword [edx + esi*4], 0
jne 0x5b7a9b
dec esi
cmp esi, ecx
jg 0x5b7a90
mov dword [esp + 0x14], esi
mov ebx, esi
xor edi, edi
sub ebx, ecx
test ebp, ebp
jle 0x5b7ad8
lea eax, [ebp*2]
mov dword [esp + 0x10], eax
lea eax, [ebx + ebx]
mov dword [esp + 0x18], eax
mov esi, eax
nop dword [eax]
mov eax, ebx
add ebx, esi
cdq
idiv dword [esp + 0x10]
add eax, ecx
mov dword [esp + edi*4 + 0x28], eax
inc edi
cmp edi, ebp
jl 0x5b7ac0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], 0
test ebp, ebp
jle 0x5b7b07
lea edx, [ebp*4]
xor eax, eax
mov ecx, edx
lea edi, [esp + 0x38]
shr ecx, 2
rep stosd dword es:[edi], eax
shr edx, 2
lea edi, [esp + 0x48]
mov ecx, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
xor edi, edi
mov ebx, ecx
cmp ecx, esi
jg 0x5b7b6f
mov eax, dword [esp + 0x464]
mov edx, dword [eax + ebx*4]
mov dword [esp + 0x10], edx
test edx, edx
je 0x5b7b6a
lea ecx, [edi + 1]
cmp ecx, ebp
jge 0x5b7b52
mov eax, ebx
sub eax, dword [esp + edi*4 + 0x2c]
cdq
mov esi, eax
mov eax, ebx
sub eax, dword [esp + edi*4 + 0x28]
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
jge 0x5b7b4a
inc ecx
inc edi
cmp ecx, ebp
jl 0x5b7b28
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, edx
mov dword [esp + ebx*4 + 0x58], edi
imul eax, ebx
add dword [esp + edi*4 + 0x48], eax
add dword [esp + edi*4 + 0x38], edx
mov eax, dword [esp + 0x464]
inc ebx
cmp ebx, esi
jle 0x5b7b16
xor ecx, ecx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x1c], ecx
xor esi, esi
mov dword [esp + 0x10], edi
test ebp, ebp
jle 0x5b7bca
mov edi, dword [esp + esi*4 + 0x38]
test edi, edi
je 0x5b7bbd
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + esi*4 + 0x48]
sar ecx, 1
add eax, ecx
cdq
idiv edi
mov ecx, eax
mov eax, dword [esp + esi*4 + 0x28]
sub eax, ecx
mov dword [esp + esi*4 + 0x28], ecx
cdq
xor eax, edx
sub eax, edx
add dword [esp + 0x1c], eax
mov eax, edi
imul eax, ecx
add dword [esp + 0x10], eax
add ebx, edi
inc esi
cmp esi, ebp
jl 0x5b7b83
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, edi
cdq
idiv ebx
mov edi, eax
cmp ecx, 5
jl 0x5b7bf7
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
inc eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
cmp eax, 6
jl 0x5b7ae0
mov ebx, dword [esp + 0x24]
xor esi, esi
mov eax, dword [ebx + 0x2c]
imul eax, dword [ebx + 0x28]
test eax, eax
jle 0x5b7c40
nop dword [eax + eax]
mov eax, dword [ebx + 0x588c]
lea edx, [eax + esi*8]
inc esi
movzx eax, byte [edx + 4]
mov ecx, dword [esp + eax*4 + 0x58]
mov eax, ecx
shl eax, 5
xor eax, dword [edx]
and eax, 0x60
xor dword [edx], eax
mov al, byte [esp + ecx*4 + 0x28]
mov byte [edx + 4], al
mov eax, dword [ebx + 0x2c]
imul eax, dword [ebx + 0x28]
cmp esi, eax
jl 0x5b7c10
cmp ebp, 1
jle 0x5b7c56
mov eax, dword [ebx]
test byte [eax + 0x44], 1
je 0x5b7c56
push ebx
call fcn.005b8270
add esp, 4
push edi
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.005b80f0
mov ecx, dword [esp + 0x464]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058f0d5
add esp, 0x44c
ret