Function at 0x451220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x9f9d14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x58], 1
call fcn.0045a210
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00451d40
push 0
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0xd8]
push edi
push eax
call fcn.00451e10
add esp, 0x1c
test eax, eax
jne 0x45129e
lea eax, [ebp - 0xd8]
push eax
call fcn.00451c30
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007059ee
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
push ebx
test edx, edx
je 0x4514f0
mov edi, dword [ebp - 0x48]
mov ecx, 1
cmp edx, dword [ebp - 0x50]
mov ebx, edx
mov eax, ecx
mov byte [ebp - 0x49], cl
cmova ebx, dword [ebp - 0x50]
shr eax, 0x18
mov byte [ebp - 0x4c], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x4b], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x4a], al
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x70], ebx
push eax
call fcn.00451c60
add esp, 8
test eax, eax
je 0x451545
push dword [ebp + 0x14]
lea eax, [ebp - 0xa4]
push dword [ebp - 0x5c]
push eax
call fcn.00452070
add esp, 0xc
test eax, eax
je 0x451517
push 4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00452070
add esp, 0xc
test eax, eax
je 0x451517
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00451d70
add esp, 0xc
test eax, eax
je 0x451517
lea eax, [ebp - 0xa4]
push eax
call fcn.00451c30
push ebx
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.007079f0
add esp, 0x10
mov dword [ebp - 0x54], 1
cmp esi, 1
jbe 0x4514d4
nop dword [eax + eax]
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00451c60
add esp, 8
test eax, eax
je 0x451545
push dword [ebp - 0x50]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00452070
add esp, 0xc
test eax, eax
je 0x451517
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00451d70
add esp, 0xc
test eax, eax
je 0x451517
lea eax, [ebp - 0xa4]
push eax
call fcn.00451c30
add esp, 4
xor esi, esi
test ebx, ebx
je 0x4514c1
cmp ebx, 0x40
jb 0x45149c
lea ecx, [edi - 1]
lea eax, [ebp + ebx - 0x45]
add ecx, ebx
cmp edi, eax
ja 0x451413
lea eax, [ebp - 0x44]
cmp ecx, eax
jae 0x45149c
mov eax, edi
mov edx, ebx
mov ecx, edi
lea ebx, [ebp - 0x24]
neg eax
lea edi, [ebp - 0x44]
add edi, eax
add ebx, eax
mov dword [ebp - 0x60], edi
and edx, 0xffffffc0
mov dword [ebp - 0x68], ebx
lea edi, [ebp - 0x34]
add edi, eax
lea ebx, [ebp - 0x14]
add eax, ebx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x6c], eax
mov ebx, edi
mov eax, dword [ebp - 0x60]
movups xmm0, xmmword [ecx]
mov edi, dword [ebp - 0x68]
add esi, 0x40
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [eax + ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [ebx + ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [edi + ecx - 0x40]
mov edi, dword [ebp - 0x6c]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm1, xmmword [edi + ecx - 0x40]
mov edi, dword [ebp - 0x48]
movups xmm0, xmmword [ecx - 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp esi, edx
jb 0x451443
mov ebx, dword [ebp - 0x70]
cmp esi, ebx
jae 0x4514c1
lea eax, [esi + edi]
mov edx, ebx
lea edi, [ebp - 0x44]
sub edi, dword [ebp - 0x48]
sub edx, esi
nop dword [eax]
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x4514b0
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x54]
inc esi
mov dword [ebp - 0x54], esi
cmp esi, dword [ebp + 0x18]
jb 0x451380
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
add edi, ebx
mov ecx, dword [ebp - 0x58]
sub edx, ebx
inc ecx
mov dword [ebp + 0x20], edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x48], edi
test edx, edx
jne 0x4512b5
lea eax, [ebp - 0xd8]
push eax
call fcn.00451c30
add esp, 4
xor eax, eax
test esi, esi
setne al
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007059ee
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xd8]
push eax
call fcn.00451c30
lea eax, [ebp - 0xa4]
push eax
call fcn.00451c30
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007059ee
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xd8]
push eax
call fcn.00451c30
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop ebx
pop edi
pop esi
call fcn.007059ee
mov esp, ebp
pop ebp
ret