Function at 0x45be70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.00437980
mov eax, dword [0x4ce540]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push esi
mov esi, dword [esp + 0x38]
mov bl, byte [esi]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x28]
push edi
mov byte [esp + 0xf], bl
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
test bl, 0x40
jne 0x45bec0
push ecx
lea ecx, [esi + 0x10]
push ecx
push esi
call eax
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, bl
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
cmp eax, 0xf
jae 0x45bef3
lea esp, [esp]
movzx edi, byte [esi + eax]
or ecx, edi
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x45bee0
movzx eax, byte [esi + 0xf]
mov ebx, dword [esp + 0x48]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x45bf1a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004265ea
add esp, 0x2c
ret
lea ecx, [ebx + 0xf]
or ecx, 8
shr ecx, 3
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x45bf52
ja 0x45bf3b
cmp dword [esi + 0x20], 0
jbe 0x45bf52
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004265ea
add esp, 0x2c
ret
mov edi, dword [esp + 0x40]
push ebp
cmp ebx, 0x10
jb 0x45c008
mov eax, ebx
shr eax, 4
lea ebp, [esi + 0x10]
mov dword [esp + 0x24], eax
lea esp, [esp]
mov edx, dword [edi]
xor dword [ebp], edx
mov eax, dword [edi + 4]
xor dword [ebp + 4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 8]
xor dword [esi + 0x18], ecx
mov edx, dword [edi + 0xc]
xor dword [esi + 0x1c], edx
push eax
push ebp
push ebp
call dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
call dword [esp + 0x30]
add esp, 0x18
mov eax, 8
lea esp, [esp]
mov cl, byte [eax + esi + 7]
dec eax
add cl, 1
mov byte [eax + esi + 8], cl
jne 0x45bfc2
test eax, eax
jne 0x45bfb0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x1c]
xor ecx, dword [esp + 0x28]
xor edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
xor ecx, dword [edi + 8]
mov edx, dword [esp + 0x34]
xor edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
add eax, 0x10
add edi, 0x10
sub ebx, 0x10
sub dword [esp + 0x24], 1
mov dword [esp + 0x1c], eax
jne 0x45bf70
mov edx, dword [esp + 0x20]
test ebx, ebx
je 0x45c067
xor eax, eax
test ebx, ebx
jbe 0x45c01e
mov cl, byte [eax + edi]
xor byte [esi + eax + 0x10], cl
inc eax
cmp eax, ebx
jb 0x45c012
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x10]
push edx
push eax
push eax
call ebp
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
call ebp
add esp, 0x18
xor ecx, ecx
test ebx, ebx
jbe 0x45c063
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x28]
mov eax, edx
sub edi, edx
sub ebp, eax
lea eax, [esp + ecx + 0x28]
mov dl, byte [edi + eax]
xor dl, byte [eax]
inc ecx
mov byte [eax + ebp], dl
cmp ecx, ebx
jb 0x45c052
mov edx, dword [esp + 0x20]
pop ebp
cmp edx, 0x10
jae 0x45c083
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.00427b00
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
push esi
call dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
xor dword [esi + 0x10], ecx
mov edx, dword [esp + 0x34]
xor dword [esi + 0x14], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x18], eax
mov dl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x40]
add esp, 0xc
pop edi
mov byte [esi], dl
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004265ea
add esp, 0x2c
ret