Function at 0x452aa0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
push ebx
mov bl, byte [esp + 0x64]
mov al, bl
and al, 0xf
push esi
cmp al, 8
jne 0x452bec
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x70]
shrd ecx, eax, 9
shr eax, 9
test edx, edx
je 0x452ade
and bl, 0xf0
cmp bl, 0x10
jne 0x452ade
mov esi, dword [edx]
mov edx, dword [edx + 4]
sub ecx, esi
sbb eax, edx
movzx edx, byte [esp + 0x54]
add edx, 0xfffffff8
cmp edx, 3
ja case.default.0x452aef
jmp dword [edx*4 + 0x452e30]
mov edx, dword [esp + 0x6c]
lea esi, [edx + 0x1e8]
push esi
add edx, 0xf4
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push edx
push eax
push ecx
push fcn.00451f60
push fcn.00451f40
call fcn.00455be0
add esp, 0x24
pop esi
mov eax, 1
pop ebx
add esp, 0x48
ret
mov edx, dword [esp + 0x6c]
lea esi, [edx + 0x10b0]
push esi
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push edx
push eax
push ecx
push fcn.0045a720
push fcn.00459dd0
call fcn.00455be0
add esp, 0x24
pop esi
mov eax, 1
pop ebx
add esp, 0x48
ret
mov edx, dword [esp + 0x6c]
lea esi, [edx + 0x230]
push esi
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push edx
push eax
push ecx
push fcn.0045f750
push fcn.0045e720
call fcn.00455be0
add esp, 0x24
pop esi
mov eax, 1
pop ebx
add esp, 0x48
ret
mov edx, dword [esp + 0x6c]
lea esi, [edx + 0xb0]
push esi
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push edx
push eax
push ecx
push fcn.00461a00
push fcn.004615d0
call fcn.00455be0
add esp, 0x24
pop esi
mov eax, 1
pop ebx
add esp, 0x48
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x48
ret
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x68]
push eax
push esi
push ecx
mov dword [esp + 0x74], 0
call fcn.00452170
add esp, 0xc
test eax, eax
je case.default.0x452aef
mov eax, dword [esp + 0x64]
mov edx, dword [eax]
mov eax, dword [eax + 4]
push ebp
mov ebp, dword [esp + 0x6c]
shr esi, 3
mov ecx, esi
mov esi, dword [esp + 0x60]
mov dword [esp + 0x18], eax
xor eax, eax
shr ebp, 3
push edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
test bl, bl
je 0x452d62
cmp bl, 4
jne 0x452d58
cmp ecx, eax
mov dword [esp + 0x70], eax
jle 0x452e22
mov ebx, dword [esp + 0x74]
mov eax, ebp
sub eax, 1
je 0x452ce8
sub eax, 1
jne 0x452d58
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00453e0f
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add dword [esp + 0x24], 0x10
push ebx
push esi
adc dword [esp + 0x30], 0
xor eax, dword [esp + 0x3c]
xor ecx, dword [esp + 0x40]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
xor edx, dword [esp + 0x44]
xor eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
push esi
push ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
call fcn.004525d0
mov edx, dword [esp + 0x44]
xor dword [esi], edx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
xor dword [esi + 4], eax
xor dword [esi + 8], ecx
xor dword [esi + 0xc], edx
add esp, 0x1c
add edi, 0x10
add esi, 0x10
jmp 0x452d37
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004541c0
add dword [esp + 0x24], 8
mov edx, dword [edi]
mov eax, dword [edi + 4]
adc dword [esp + 0x28], 0
xor edx, dword [esp + 0x34]
xor eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
push ebx
push esi
push esi
push ecx
mov dword [esi], edx
mov dword [esi + 4], eax
call fcn.004525d0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
xor dword [esi], edx
xor dword [esi + 4], eax
add esp, 0x1c
add edi, 8
add esi, 8
mov eax, dword [esp + 0x70]
add eax, ebp
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x70], eax
jl 0x452c65
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x48
ret
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x48
ret
cmp ecx, eax
mov dword [esp + 0x70], eax
jle 0x452e22
sub edi, esi
mov ebx, esi
mov dword [esp + 0x14], edi
jmp 0x452d7a
xor eax, eax
cmp ebp, eax
jle 0x452da6
lea ecx, [edi + ebx]
mov edx, dword [ecx]
mov dword [esp + eax*8 + 0x48], edx
mov edx, dword [ecx + 4]
mov dword [esp + eax*8 + 0x4c], edx
mov edx, dword [esp + eax*8 + 0x48]
mov dword [esp + eax*8 + 0x38], edx
mov edx, dword [esp + eax*8 + 0x4c]
mov dword [esp + eax*8 + 0x3c], edx
inc eax
add ecx, 8
cmp eax, ebp
jl 0x452d81
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x3c]
push ecx
mov edx, ecx
push edx
push eax
call fcn.004525d0
add esp, 0x10
xor eax, eax
test ebp, ebp
jle 0x452e05
mov ecx, ebx
jmp 0x452dd0
mov edx, dword [esp + eax*8 + 0x38]
mov esi, dword [esp + eax*8 + 0x3c]
xor edx, dword [esp + eax*8 + 0x18]
xor esi, dword [esp + eax*8 + 0x1c]
mov dword [ecx], edx
mov dword [ecx + 4], esi
inc eax
add ecx, 8
cmp eax, ebp
jl 0x452dd0
mov ecx, ebp
and ecx, 0x1fffffff
add ecx, ecx
lea esi, [esp + 0x48]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
add eax, ebp
lea ecx, [ebp*8]
add ebx, ecx
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x70], eax
jl 0x452d78
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x48
ret