Function at 0x1005eeb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.10033890
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x44]
movzx ecx, byte [eax]
xor edx, edx
mov dh, byte [eax + 1]
add eax, 1
add eax, 1
add eax, 1
add eax, 1
add eax, 1
add eax, 1
or ecx, edx
movzx edx, byte [eax - 4]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax - 3]
shl edx, 0x18
or ecx, edx
xor edx, edx
mov dh, byte [eax - 1]
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax - 2]
or ecx, edx
xor edx, edx
mov dh, byte [eax + 1]
mov dl, byte [eax]
mov eax, dword [esp + 0x48]
add eax, 1
add eax, 1
add eax, 1
movzx esi, byte [eax + 1]
shl edx, 0x10
or ecx, edx
xor edx, edx
mov dh, byte [eax - 2]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax - 3]
add eax, 1
add eax, 1
or ecx, edx
movzx edx, byte [eax - 3]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax - 2]
shl edx, 0x18
or ecx, edx
xor edx, edx
mov dh, byte [eax]
add eax, 1
mov dword [esp + 0x48], ecx
or esi, edx
xor edx, edx
mov dh, byte [eax + 1]
mov dl, byte [eax]
shl edx, 0x10
or esi, edx
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x10], esi
je 0x1005f1f0
mov ecx, dword [esp + 0x40]
movzx eax, byte [ecx]
lea esi, [ecx + 1]
movzx edx, byte [esi + 1]
xor ecx, ecx
mov ch, byte [esi]
mov dword [esp + 0x1c], esi
add esi, 1
add esi, 1
shl edx, 0x10
add esi, 1
add esi, 1
or eax, ecx
movzx ecx, byte [esi - 2]
or eax, edx
shl ecx, 0x18
xor edx, edx
mov dh, byte [esi]
or eax, ecx
movzx ecx, byte [esi - 1]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
or ecx, edx
add esi, 1
xor edx, edx
mov dh, byte [esi + 1]
mov dl, byte [esi]
mov esi, dword [esp + 0x34]
shl edx, 0x10
or ecx, edx
add ebx, 0xfffffff8
js 0x1005f0bf
lea edx, [ebx + 8]
shr edx, 3
mov dword [esp + 0x44], edx
neg edx
lea edx, [ebx + edx*8]
mov dword [esp + 0x38], edx
mov edi, edi
movzx ebp, byte [edi]
xor edx, edx
mov dh, byte [edi + 1]
add edi, 1
add edi, 1
add edi, 1
add edi, 1
xor ebx, ebx
mov bh, byte [edi + 1]
or ebp, edx
movzx edx, byte [edi - 2]
shl edx, 0x10
or ebp, edx
movzx edx, byte [edi - 1]
shl edx, 0x18
or ebp, edx
movzx edx, byte [edi]
add edi, 1
or edx, ebx
movzx ebx, byte [edi + 1]
add edi, 1
shl ebx, 0x10
or edx, ebx
movzx ebx, byte [edi + 1]
add edi, 1
shl ebx, 0x18
or edx, ebx
xor ebp, eax
mov eax, dword [esp + 0x3c]
xor ebp, dword [esp + 0x14]
xor edx, ecx
xor edx, dword [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x2c]
push ecx
add edi, 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
call fcn.1005bd50
mov eax, dword [esp + 0x30]
xor eax, dword [esp + 0x54]
add esi, 1
mov byte [esi - 1], al
add esi, 1
mov edx, eax
shr edx, 8
mov byte [esi - 1], dl
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
mov ecx, dword [esp + 0x34]
xor ecx, dword [esp + 0x1c]
add esi, 1
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
add esi, 1
mov byte [esi], cl
add esi, 1
mov edx, ecx
shr edx, 8
mov byte [esi], dl
add esi, 1
mov edx, ecx
shr edx, 0x10
mov byte [esi], dl
add esi, 1
mov edx, ecx
shr edx, 0x18
mov byte [esi], dl
add esp, 0xc
add esi, 1
sub dword [esp + 0x44], 1
jne 0x1005efe0
mov ebx, dword [esp + 0x38]
cmp ebx, 0xfffffff8
je 0x1005f1a6
lea edx, [edi + ebx + 8]
add ebx, 7
xor edi, edi
xor ebp, ebp
cmp ebx, 7
ja case.default.0x1005f0d8
jmp dword [ebx*4 + 0x1005f49c]
movzx edi, byte [edx - 1]
sub edx, 1
shl edi, 0x18
movzx ebx, byte [edx - 1]
sub edx, 1
shl ebx, 0x10
or edi, ebx
sub edx, 1
xor ebx, ebx
mov bh, byte [edx]
or edi, ebx
movzx ebx, byte [edx - 1]
sub edx, 1
or edi, ebx
movzx ebp, byte [edx - 1]
sub edx, 1
shl ebp, 0x18
movzx ebx, byte [edx - 1]
sub edx, 1
shl ebx, 0x10
or ebp, ebx
sub edx, 1
xor ebx, ebx
mov bh, byte [edx]
or ebp, ebx
movzx edx, byte [edx - 1]
or ebp, edx
xor ebp, eax
mov eax, dword [esp + 0x3c]
xor ebp, dword [esp + 0x14]
xor edi, ecx
xor edi, dword [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edi
call fcn.1005bd50
mov eax, dword [esp + 0x30]
xor eax, dword [esp + 0x54]
add esi, 1
mov byte [esi - 1], al
mov edx, eax
shr edx, 8
mov byte [esi], dl
add esi, 1
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
mov ecx, dword [esp + 0x34]
xor ecx, dword [esp + 0x1c]
add esi, 1
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
add esi, 1
mov byte [esi], cl
add esi, 1
mov edx, ecx
shr edx, 8
mov byte [esi], dl
add esi, 1
mov edx, ecx
shr edx, 0x10
mov byte [esi], dl
mov edx, ecx
add esp, 0xc
shr edx, 0x18
mov byte [esi + 1], dl
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x1c]
mov byte [edx], al
mov edx, eax
shr edx, 8
mov byte [esi], dl
add esi, 1
mov edx, eax
shr edx, 0x10
mov byte [esi], dl
add esi, 1
shr eax, 0x18
mov byte [esi], al
add esi, 1
mov byte [esi], cl
add esi, 1
mov eax, ecx
shr eax, 8
mov byte [esi], al
add esi, 1
mov edx, ecx
shr edx, 0x10
pop edi
mov byte [esi], dl
shr ecx, 0x18
mov byte [esi + 1], cl
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x40]
movzx ebx, byte [eax]
lea esi, [eax + 1]
movzx edx, byte [esi + 1]
xor eax, eax
mov ah, byte [esi]
mov dword [esp + 0x1c], esi
add esi, 1
add esi, 1
shl edx, 0x10
add esi, 1
add esi, 1
or ebx, eax
movzx eax, byte [esi - 2]
shl eax, 0x18
or ebx, edx
movzx edx, byte [esi - 1]
or ebx, eax
xor eax, eax
mov ah, byte [esi]
mov edi, dword [esp + 0x34]
add esi, 1
or edx, eax
xor eax, eax
mov ah, byte [esi + 1]
mov al, byte [esi]
mov esi, dword [esp + 0x30]
shl eax, 0x10
or edx, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff8
test eax, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
jle 0x1005f361
lea edx, [eax - 1]
shr edx, 3
add edx, 1
mov dword [esp + 0x20], edx
neg edx
lea edx, [eax + edx*8]
mov dword [esp + 0x38], edx
movzx ebp, byte [esi]
xor eax, eax
mov ah, byte [esi + 1]
add esi, 1
movzx edx, byte [esi + 1]
add esi, 1
add esi, 1
or ebp, eax
movzx eax, byte [esi]
shl edx, 0x10
shl eax, 0x18
or ebp, edx
or ebp, eax
movzx eax, byte [esi + 1]
add esi, 1
mov edx, ebp
xor edx, ecx
xor ecx, ecx
mov ch, byte [esi + 1]
add esi, 1
mov dword [esp + 0x24], edx
movzx edx, byte [esi + 1]
add esi, 1
or eax, ecx
movzx ecx, byte [esi + 1]
add esi, 1
shl edx, 0x10
or eax, edx
mov edx, dword [esp + 0x3c]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x4c], eax
xor eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x2c]
push eax
add esi, 1
call fcn.1005bd50
mov ecx, dword [esp + 0x50]
xor ecx, dword [esp + 0x34]
mov eax, ebx
xor eax, dword [esp + 0x30]
xor ecx, dword [esp + 0x24]
xor eax, dword [esp + 0x20]
add edi, 1
mov byte [edi - 1], al
mov edx, eax
shr edx, 8
mov byte [edi], dl
add edi, 1
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
add edi, 1
shr eax, 0x18
mov byte [edi], al
mov byte [edi + 1], cl
add edi, 1
add edi, 1
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x58]
mov edx, ecx
add edi, 1
shr edx, 0x10
mov byte [edi], dl
add edi, 1
shr ecx, 0x18
mov byte [edi], cl
mov ecx, dword [esp + 0x54]
add esp, 0xc
add edi, 1
sub dword [esp + 0x20], 1
mov ebx, ebp
mov dword [esp + 0x44], eax
jne 0x1005f270
mov edx, eax
mov eax, dword [esp + 0x38]
cmp eax, 0xfffffff8
je 0x1005f452
movzx ebp, byte [esi]
xor edx, edx
mov dh, byte [esi + 1]
add esi, 1
movzx eax, byte [esi + 1]
add esi, 1
shl eax, 0x10
or ebp, edx
movzx edx, byte [esi + 1]
add esi, 1
or ebp, eax
shl edx, 0x18
or ebp, edx
mov eax, ebp
xor eax, ecx
mov dword [esp + 0x24], eax
movzx eax, byte [esi + 1]
add esi, 1
xor ecx, ecx
mov ch, byte [esi + 1]
add esi, 1
xor edx, edx
mov dh, byte [esi + 2]
add esi, 1
push 0
or eax, ecx
lea ecx, [esp + 0x28]
mov dl, byte [esi]
shl edx, 0x10
or eax, edx
mov dword [esp + 0x50], eax
xor eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
push eax
push ecx
call fcn.1005bd50
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
xor ebx, dword [esp + 0x30]
xor eax, dword [esp + 0x34]
xor ebx, dword [esp + 0x20]
xor eax, dword [esp + 0x24]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0xc
cmp ecx, 7
ja case.default.0x1005f3fb
jmp dword [ecx*4 + 0x1005f4bc]
sub edi, 1
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
sub edi, 1
mov ecx, eax
shr ecx, 0x10
mov byte [edi], cl
sub edi, 1
mov edx, eax
shr edx, 8
mov byte [edi], dl
sub edi, 1
mov byte [edi], al
sub edi, 1
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
sub edi, 1
mov ecx, ebx
shr ecx, 0x10
mov byte [edi], cl
sub edi, 1
mov edx, ebx
shr edx, 8
mov byte [edi], dl
mov byte [edi - 1], bl
mov eax, dword [esp + 0x4c]
mov ebx, ebp
mov dword [esp + 0x44], eax
mov edx, eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
mov byte [ecx], bl
mov ecx, ebx
shr ecx, 8
mov byte [eax], cl
add eax, 1
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
add eax, 1
shr ebx, 0x18
mov byte [eax], bl
add eax, 1
mov byte [eax], dl
mov ecx, edx
shr ecx, 8
add eax, 1
mov byte [eax], cl
pop edi
mov ecx, edx
add eax, 1
pop esi
shr ecx, 0x10
shr edx, 0x18
pop ebp
mov byte [eax], cl
mov byte [eax + 1], dl
pop ebx
add esp, 0x1c
ret