Function at 0x454520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], 0
test eax, eax
push ecx
cmovne edx, eax
mov dword [ebp - 0xc], edx
call fcn.00447630
mov esi, dword [ebp + 8]
mov dword [ebp + 0x18], eax
push dword [esi + 4]
call fcn.0042beb0
add esp, 8
test eax, eax
je 0x454585
push 0x265
push 0x923ac8
push 0x78
push edi
push 4
call fcn.00447a40
add esp, 0x14
push edi
call fcn.0069b79a
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push dword [esi + 4]
call fcn.0042b6f0
push esi
lea ebx, [eax - 1]
and ebx, 7
mov dword [ebp - 0x10], ebx
call fcn.004559d0
add esp, 8
mov edx, eax
test ebx, ebx
mov dword [ebp + 8], edx
mov ebx, dword [ebp + 0xc]
jne 0x4545b4
mov byte [ebx], 0
inc ebx
dec edx
mov dword [ebp + 8], edx
mov ecx, dword [ebp + 0x18]
lea eax, [ecx + 2]
cmp edx, eax
jae 0x4545c5
push 0x272
jmp 0x4545e2
mov esi, dword [ebp + 0x1c]
cmp esi, 0xffffffff
jne 0x454608
mov esi, ecx
mov eax, edx
sub eax, ecx
mov dword [ebp - 4], eax
add eax, 0xfffffffe
cmp eax, esi
jae 0x454648
push 0x287
push 0x923ac8
push 0x72
push 0
push 4
call fcn.00447a40
add esp, 0x14
pop ebx
push edi
call fcn.0069b79a
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xfffffffe
jne 0x454616
mov esi, edx
sub esi, ecx
sub esi, 2
jmp 0x4545cf
test esi, esi
jns 0x4545cf
push 0x280
push 0x923ac8
push 0x8a
push 0
push 4
call fcn.00447a40
add esp, 0x14
pop ebx
push edi
call fcn.0069b79a
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x454697
push esi
call fcn.0069b79f
mov edi, eax
add esp, 4
test edi, edi
jne 0x454685
push 0x28e
push 0x923ac8
push 0x41
push eax
push 4
call fcn.00447a40
add esp, 0x14
pop ebx
push edi
call fcn.0069b79a
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.00453c60
add esp, 8
test eax, eax
je 0x4547f4
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00435120
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
call fcn.004411e0
add esp, 0x10
test eax, eax
je 0x4547f4
push 8
lea eax, [ebp - 0x20]
push 0x923ac0
push eax
call fcn.00441260
add esp, 0xc
test eax, eax
je 0x4547f4
push dword [ebp + 0x18]
lea eax, [ebp - 0x20]
push dword [ebp + 0x10]
push eax
call fcn.00441260
add esp, 0xc
test eax, eax
je 0x4547f4
test esi, esi
je 0x45470f
push esi
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00441260
add esp, 0xc
test eax, eax
je 0x4547f4
mov eax, dword [ebp - 4]
add eax, ebx
push 0
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004411a0
add esp, 0xc
test eax, eax
je 0x4547f4
lea eax, [ebp - 0x20]
push eax
call fcn.00441280
push dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push dword [ebp + 0x18]
lea eax, [ecx + ebx]
push eax
push ecx
push ebx
call fcn.004540e0
add esp, 0x18
test eax, eax
je 0x4547f4
mov edx, dword [ebp + 8]
mov ecx, edx
sub ecx, esi
sub ecx, dword [ebp + 0x18]
add ecx, ebx
xor byte [ecx - 2], 1
dec ecx
test esi, esi
je 0x4547d1
xor edx, edx
cmp esi, 0x20
jb 0x4547b9
lea eax, [edi - 1]
add eax, esi
cmp ecx, eax
ja 0x454781
lea eax, [ecx - 1]
add eax, esi
cmp eax, edi
jae 0x4547b9
mov eax, esi
and eax, 0xffffffe0
nop word [eax + eax]
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [edi + edx]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm1, xmmword [edi + edx + 0x10]
add edx, 0x20
movups xmm0, xmmword [ecx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
add ecx, 0x20
cmp edx, eax
jb 0x454790
cmp edx, esi
jae 0x4547ce
nop dword [eax]
mov al, byte [edx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, esi
jb 0x4547c0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4547e8
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [ebx], al
mov byte [edx + ebx - 1], 0xbc
mov dword [ebp - 8], 1
pop ebx
push edi
call fcn.0069b79a
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret