Function at 0x5b7ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x460], eax
mov eax, dword [ebp + 0x20]
push ebx
mov dword [ebp - 0x468], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0x28]
push edi
mov dword [ebp - 0x46c], eax
jne 0x5b7f42
cmp dword [esi + 0xa4], 1
jne 0x5b8244
mov edi, dword [esi + 4]
mov dword [ebp - 0x45c], edi
lea eax, [edi - 0x10]
cmp eax, 0x3f0
ja 0x5b8244
push dword [esi + 0xa8]
call fcn.0059aeb0
add esp, 4
mov dword [ebp - 0x454], eax
test eax, eax
je 0x5b8244
push eax
call fcn.0059b0a0
movzx ebx, al
add esp, 4
mov dword [ebp - 0x464], ebx
lea eax, [ebx + ebx]
mov dword [ebp - 0x458], eax
add eax, 2
cmp eax, edi
ja 0x5b8244
cmp dword [ebp + 0x14], 0
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x448]
jne 0x5b7fb9
push esi
call fcn.005b72c0
add esp, 0xc
jmp 0x5b7fce
push dword [ebp - 0x450]
push dword [ebp - 0x44c]
push esi
call fcn.005b73a0
add esp, 0x14
test eax, eax
jne 0x5b8249
lea eax, [ebp - 0x478]
push eax
call fcn.0059af20
mov esi, dword [ebp - 0x454]
lea eax, [ebp - 0x478]
push 0
push esi
push eax
call fcn.0059b000
add esp, 0x10
mov dword [ebp - 0x454], eax
test eax, eax
je 0x5b802a
lea eax, [ebp - 0x478]
push eax
call fcn.0059af40
mov eax, dword [ebp - 0x454]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x460]
push esi
call fcn.0059b180
lea eax, [ebp - 0x478]
sub edi, ebx
push eax
dec edi
lea esi, [ebp - 0x443]
push edi
add esi, ebx
lea eax, [ebp - 0x443]
push esi
push ebx
push eax
call fcn.005b9600
lea eax, [ebp - 0x478]
push eax
push ebx
lea eax, [ebp - 0x443]
push eax
push edi
push esi
call fcn.005b9600
lea eax, [ebp - 0x478]
push eax
call fcn.0059af40
mov edx, dword [ebp - 0x464]
add esp, 0x3c
mov bl, byte [ebp - 0x444]
xor ecx, ecx
test edx, edx
je 0x5b812e
cmp edx, 0x20
jb 0x5b8115
mov eax, edx
xorps xmm3, xmm3
and eax, 0xffffffe0
xorps xmm2, xmm2
nop dword [eax]
movups xmm0, xmmword [esi]
movups xmm1, xmmword [ebp + ecx - 0x44]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x10]
add esi, 0x20
por xmm3, xmm1
movups xmm1, xmmword [ebp + ecx - 0x34]
add ecx, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, eax
jb 0x5b80b0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or bl, al
cmp ecx, edx
jae 0x5b812e
nop dword [eax]
mov al, byte [ebp + ecx - 0x44]
inc ecx
xor al, byte [esi]
inc esi
or bl, al
cmp ecx, edx
jb 0x5b8120
mov eax, dword [ebp - 0x45c]
xor edi, edi
sub eax, dword [ebp - 0x458]
xor cl, cl
add eax, 0xfffffffe
mov dword [ebp - 0x448], edi
xor edx, edx
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x44c], eax
cmp eax, 2
jb 0x5b81a5
nop word [eax + eax]
or cl, byte [esi + edx]
mov al, cl
neg al
or al, cl
or cl, byte [esi + edx + 1]
not al
add edx, 2
movzx eax, al
shr eax, 7
add edi, eax
mov al, cl
neg al
mov dword [ebp - 0x458], edi
or al, cl
not al
movzx eax, al
shr eax, 7
add dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x44c]
dec eax
cmp edx, eax
jb 0x5b8160
mov eax, dword [ebp - 0x44c]
cmp edx, eax
jae 0x5b81c0
or cl, byte [edx + esi]
mov al, cl
neg al
or al, cl
not al
movzx eax, al
shr eax, 7
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x448]
add eax, edi
add eax, dword [ebp - 0x450]
add esi, eax
mov al, byte [esi]
inc esi
xor al, 1
or bl, al
je 0x5b81ef
pop edi
pop esi
mov eax, 0xffffbf00
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x45c]
sub eax, esi
lea eax, [ebp + eax - 0x444]
cmp eax, dword [ebp + 0x2c]
jbe 0x5b8219
pop edi
pop esi
mov eax, 0xffffbc00
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x468]
push eax
push esi
push dword [ebp - 0x46c]
mov dword [ecx], eax
call fcn.005c9900
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
mov eax, 0xffffbf80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058bb64
mov esp, ebp
pop ebp
ret