Function at 0x5dac70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.004a2410
mov eax, dword [0x6f1114]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x28], esi
mov bl, byte [esi]
lea edi, [esi + 0x10]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov byte [esp + 0x13], bl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
test bl, 0x40
jne 0x5dacbd
push ecx
push edi
push esi
call eax
add esp, 0xc
movzx eax, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [esp + 0x2c], edx
cmp edx, 0xf
jae 0x5dacf3
nop word [eax + eax]
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x5dace0
movzx eax, byte [esi + 0xf]
mov ebp, dword [esp + 0x54]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebp
je 0x5dad1b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004a1496
add esp, 0x34
ret
cmp ebp, 0x10
jb 0x5dadcf
mov ebx, 0xfffffff8
mov eax, ebp
sub ebx, esi
shr eax, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
nop dword [eax]
push dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
mov eax, edi
add byte [eax - 1], 1
lea eax, [eax - 1]
jne 0x5dad63
lea ecx, [ebx + eax]
test ecx, ecx
jne 0x5dad53
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
push dword [esp + 0x20]
xor ecx, dword [edx]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x18]
xor eax, dword [esp + 0x38]
push edi
push edi
mov dword [edx], ecx
mov dword [edx + 4], eax
xor dword [edi], ecx
mov edx, dword [esp + 0x24]
xor dword [edi + 4], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [edx + 0xc]
xor ecx, dword [edx + 8]
mov edx, dword [esp + 0x20]
xor eax, dword [esp + 0x48]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
xor dword [esi + 0x18], ecx
xor dword [esi + 0x1c], eax
call dword [esp + 0x28]
add dword [esp + 0x24], 0x10
add esp, 0xc
add dword [esp + 0x14], 0x10
sub ebp, 0x10
sub dword [esp + 0x24], 1
jne 0x5dad40
mov ebx, dword [esp + 0x18]
jmp 0x5dadd3
mov ebx, dword [esp + 0x4c]
test ebp, ebp
je 0x5dae2e
push dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test ebp, ebp
je 0x5dae1c
lea ecx, [esp + 0x30]
mov edx, edi
mov eax, ecx
sub ebx, eax
sub dword [esp + 0x14], eax
mov esi, dword [esp + 0x14]
nop
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [esi + ecx - 1], al
xor byte [edx - 1], al
sub ebp, 1
jne 0x5dae00
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push ebp
push edi
push edi
call ebx
add esp, 0xc
jmp 0x5dae36
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
jae 0x5dae55
mov eax, 0x10
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call fcn.004b95f0
add esp, 0xc
push ebp
lea eax, [esp + 0x34]
push eax
push esi
call ebx
mov eax, dword [esp + 0x3c]
add esp, 0xc
xor dword [edi], eax
mov eax, dword [esp + 0x34]
xor dword [edi + 4], eax
mov eax, dword [esp + 0x38]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x3c]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x40]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a1496
add esp, 0x34
ret