Function at 0x45afd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00437980
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x170]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
xor eax, eax
add ecx, dword [esi + 0x38]
adc eax, dword [esi + 0x3c]
cmp eax, 0xf
ja 0x45b2ae
jb 0x45b013
cmp ecx, 0xffffffe0
ja 0x45b2ae
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
je 0x45b03c
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call fcn.0045a600
add esp, 8
mov dword [esi + 0x16c], 0
movzx ecx, byte [esi + 0xd]
movzx edx, byte [esi + 0xe]
movzx eax, byte [esi + 0xf]
push ebx
movzx ebx, byte [esi + 0xc]
shl ebx, 8
or ebx, ecx
shl ebx, 8
or ebx, edx
push ebp
mov ebp, dword [esi + 0x168]
shl ebx, 8
or ebx, eax
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x28], ebp
test ebp, ebp
je 0x45b0bb
cmp dword [esp + 0x34], 0
je 0x45b09f
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx]
dec dword [esp + 0x34]
inc ecx
mov dword [esp + 0x2c], ecx
mov cl, byte [esi + ebp + 0x10]
xor cl, al
mov byte [edi], cl
xor byte [esi + ebp + 0x40], al
inc ebp
inc edi
and ebp, 0xf
jne 0x45b070
mov dword [esp + 0x28], ebp
jmp 0x45b0ab
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x45b29e
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call fcn.0045a600
add esp, 8
mov ecx, dword [esp + 0x34]
cmp ecx, 0xc00
jb 0x45b17d
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
lea ebp, [esi + 0x10]
mov dword [esp + 0x20], edx
lea esp, [esp]
mov ecx, dword [esp + 0x2c]
push 0xc00
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0045a780
add esp, 0xc
mov dword [esp + 0x1c], 0xc0
mov ecx, dword [esp + 0x14]
push ecx
push ebp
push esi
call dword [esp + 0x24]
inc ebx
mov edx, ebx
shr edx, 0x18
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xc], dl
mov edx, dword [esp + 0x38]
mov ecx, ebx
shr ecx, 8
mov byte [esi + 0xd], al
add esp, 0xc
xor eax, eax
sub edx, edi
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], bl
mov ecx, edi
mov dword [esp + 0x10], edx
jmp 0x45b144
mov edx, dword [esp + 0x10]
mov edx, dword [edx + ecx]
xor edx, dword [eax + ebp]
add eax, 4
mov dword [ecx], edx
add ecx, 4
cmp eax, 0x10
jb 0x45b140
add dword [esp + 0x2c], 0x10
add edi, 0x10
sub dword [esp + 0x1c], 1
jne 0x45b101
sub dword [esp + 0x34], 0xc00
sub dword [esp + 0x20], 1
jne 0x45b0e0
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
and eax, 0xfffffff0
je 0x45b23a
push eax
lea eax, [esi + 0x60]
push eax
lea ecx, [esi + 0x40]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0045a780
add esp, 0xc
cmp dword [esp + 0x34], 0x10
jb 0x45b23a
mov eax, dword [esp + 0x34]
shr eax, 4
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x14]
push edx
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x24]
inc ebx
mov edx, ebx
shr edx, 8
mov eax, ebx
shr eax, 0x18
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 0xe], dl
mov edx, dword [esp + 0x38]
mov byte [esi + 0xc], al
add esp, 0xc
mov byte [esi + 0xd], cl
xor eax, eax
mov ecx, edi
sub edx, edi
mov byte [esi + 0xf], bl
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edx
jmp 0x45b204
mov edx, dword [esp + 0x10]
mov edx, dword [ecx + edx]
xor edx, dword [esi + eax + 0x10]
mov ecx, dword [esp + 0x28]
mov dword [ecx], edx
add eax, 4
add ecx, 4
mov dword [esp + 0x28], ecx
cmp eax, 0x10
jb 0x45b200
mov eax, 0x10
add dword [esp + 0x2c], eax
sub dword [esp + 0x34], eax
add edi, eax
sub dword [esp + 0x20], 1
jne 0x45b1b5
cmp dword [esp + 0x34], 0
je 0x45b29e
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esi + 0x10]
push ecx
push esi
call dword [esp + 0x24]
inc ebx
mov edx, ebx
shr edx, 0x18
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xc], dl
mov edx, dword [esp + 0x38]
mov ecx, ebx
shr ecx, 8
add esp, 0xc
mov byte [esi + 0xd], al
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], bl
lea eax, [edi + ebp]
sub edx, edi
jmp 0x45b280
mov cl, byte [eax + edx]
mov bl, byte [esi + ebp + 0x10]
mov edi, dword [esp + 0x34]
xor byte [esi + ebp + 0x40], cl
xor bl, cl
dec edi
mov byte [eax], bl
inc ebp
inc eax
mov dword [esp + 0x34], edi
test edi, edi
jne 0x45b280
pop edi
mov dword [esi + 0x168], ebp
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x14
ret
or eax, 0xffffffff
pop esi
add esp, 0x14
ret