Function at 0x5f0090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ecx, dword [eax + 0x64]
mov eax, dword [ecx + 0x70]
test eax, eax
jne 0x5f0150
mov edi, dword [ecx + 0x20]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x14]
and eax, 0x3f
and edx, 0xffffffc0
mov dword [esp + 0x20], eax
cmp edx, 0x3f
jbe 0x5f0138
lea eax, [ecx + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
mov dword [ebp + 0x10], esi
mov esi, ebx
mov ebx, edx
mov edx, dword [ebp + 0x10]
mov eax, ebx
shr eax, 6
mov ecx, eax
add ecx, edi
jb 0x5f03a6
mov edi, ecx
mov ecx, dword [esp + 0x24]
shl eax, 6
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov dword [esp], esi
call fcn.0058d8c0
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x2c]
sub ebx, eax
add edx, eax
add esi, eax
mov dword [ecx + 0x20], edi
cmp ebx, 0x3f
ja 0x5f00e0
mov ebx, esi
mov esi, edx
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x5f01b8
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x5f0180
cmp eax, 0x3f
ja 0x5f0180
mov edi, dword [ebp + 0x14]
nop
add eax, 1
movzx edx, byte [esi]
add ebx, 1
add esi, 1
xor dl, byte [ecx + eax + 0x2f]
mov byte [ebx - 1], dl
sub edi, 1
je 0x5f017d
cmp eax, 0x3f
jbe 0x5f0160
mov dword [ebp + 0x14], edi
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x70], eax
test edx, edx
je 0x5f0140
mov edi, dword [ecx + 0x20]
cmp eax, 0x40
jne 0x5f00b6
add edi, 1
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x20], edi
jne 0x5f00b6
add dword [ecx + 0x24], 1
jmp 0x5f00b6
lea eax, [ecx + 0x30]
pxor xmm0, xmm0
lea edx, [ecx + 0x20]
mov dword [esp + 0x2c], ecx
movups xmmword [ecx + 0x30], xmm0
movups xmmword [ecx + 0x40], xmm0
movups xmmword [ecx + 0x50], xmm0
movups xmmword [ecx + 0x60], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0x40
call fcn.0058d8c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
sub eax, 1
cmp eax, 2
jbe 0x5f0370
lea edi, [esi + 1]
mov edx, ebx
sub edx, edi
cmp edx, 0xe
jbe 0x5f0370
lea edi, [ecx + 0x31]
mov edx, ebx
sub edx, edi
cmp edx, 0xe
jbe 0x5f0370
cmp eax, 0xe
mov eax, dword [esp + 0x20]
jbe 0x5f039b
movdqu xmm0, xmmword [esi]
movdqu xmm1, xmmword [ecx + 0x30]
shr eax, 4
pxor xmm0, xmm1
movups xmmword [ebx], xmm0
cmp eax, 1
je 0x5f0274
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmm3, xmmword [ecx + 0x40]
pxor xmm0, xmm3
movups xmmword [ebx + 0x10], xmm0
cmp eax, 3
jne 0x5f0274
movdqu xmm0, xmmword [esi + 0x20]
movdqu xmm5, xmmword [ecx + 0x50]
pxor xmm0, xmm5
movups xmmword [ebx + 0x20], xmm0
mov edi, dword [ebp + 0x14]
mov eax, dword [esp + 0x20]
and edi, 0x30
cmp eax, edi
je 0x5f0356
mov edx, eax
sub edx, edi
mov eax, edx
mov dword [esp + 0x28], edx
sub eax, 1
cmp eax, 2
jbe 0x5f031d
mov eax, dword [esp + 0x28]
lea edx, [ebx + edi]
mov dword [esp + 0x2c], edx
lea edx, [ecx + edi + 0x30]
shr eax, 2
movd xmm2, dword [edx]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
lea eax, [esi + edi]
cmp dword [esp + 0x24], 1
movd xmm0, dword [eax]
pxor xmm0, xmm2
movd dword [edx], xmm0
je 0x5f030d
lea edx, [ecx + edi + 0x30]
movd xmm0, dword [eax + 4]
cmp dword [esp + 0x24], 2
movd xmm4, dword [edx + 4]
mov edx, dword [esp + 0x2c]
pxor xmm0, xmm4
movd dword [edx + 4], xmm0
je 0x5f030d
lea edx, [ecx + edi + 0x30]
movd xmm0, dword [eax + 8]
movd xmm6, dword [edx + 8]
mov edx, dword [esp + 0x2c]
pxor xmm0, xmm6
movd dword [edx + 8], xmm0
mov edx, dword [esp + 0x28]
mov eax, edx
and eax, 0xfffffffc
add edi, eax
and edx, 3
je 0x5f0356
movzx eax, byte [esi + edi]
mov edx, dword [esp + 0x20]
xor al, byte [ecx + edi + 0x30]
mov byte [ebx + edi], al
lea eax, [edi + 1]
cmp eax, edx
jae 0x5f0356
mov eax, edx
movzx edx, byte [esi + edi + 1]
xor dl, byte [ecx + edi + 0x31]
mov byte [ebx + edi + 1], dl
lea edx, [edi + 2]
cmp edx, eax
jae 0x5f0356
movzx eax, byte [esi + edi + 2]
xor al, byte [ecx + edi + 0x32]
mov byte [ebx + edi + 2], al
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x70], eax
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x20]
xor edx, edx
lea esi, cs:[esi]
nop
movzx eax, byte [ecx + edx + 0x30]
xor al, byte [esi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, edi
jne 0x5f0380
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x70], eax
jmp 0x5f035d
mov dword [esp + 0x28], eax
xor edi, edi
jmp 0x5f029c
mov eax, dword [esp + 0x24]
neg edi
mov dword [esp + 4], edx
shl edi, 6
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
sub ebx, edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [ebp + 0x10], edx
mov dword [esp], esi
add esi, edi
call fcn.0058d8c0
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 0x10]
add dword [eax + 0x24], 1
add edx, edi
mov dword [eax + 0x20], 0
cmp ebx, 0x3f
jbe 0x5f03f7
mov eax, ebx
shr eax, 6
mov edi, eax
jmp 0x5f00f1
mov ecx, dword [esp + 0x2c]
jmp 0x5f0134