Function at 0x4515c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x68f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x218], eax
push ebx
mov ebx, edx
mov edx, dword [ebp + 8]
mov eax, edx
mov dword [ebp - 0x20c], edx
and al, 0xf
push esi
mov esi, ecx
movzx ecx, al
neg ecx
mov dword [ebp - 0x214], esi
mov eax, edx
sbb ecx, ecx
and eax, 0xfffffff0
and ecx, 0x10
add eax, ecx
mov dword [ebp - 0x210], eax
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [eax + 0x18]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x21c], ecx
mov eax, dword [eax]
cmp ecx, eax
ja 0x451863
test edi, edi
je 0x45164f
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 8], 0
inc dword [esi + 0x6f8]
lea ecx, [ebp - 0x20]
mov edx, dword [esi + 0x6f8]
call fcn.004501a0
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x20]
lea eax, [ecx + 1]
cmp eax, esi
jae 0x451678
mov byte [ecx], 1
mov ecx, eax
lea eax, [ecx + 1]
cmp eax, esi
jae 0x451684
mov byte [ecx], 0
mov ecx, eax
mov edx, dword [ebp - 0x210]
movzx eax, dx
mov dword [ebp - 0x208], eax
lea eax, [ecx + 2]
cmp eax, esi
jae 0x4516a8
mov eax, dword [ebp - 0x208]
shr eax, 8
mov byte [ecx], al
mov byte [ecx + 1], dl
mov eax, dword [ebp - 0x20c]
lea esi, [edi + 8]
mov edx, eax
mov ecx, esi
test eax, eax
je 0x4516d4
sub ebx, esi
nop dword [eax + eax]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x4516c0
mov eax, dword [ebp - 0x20c]
mov ebx, dword [ebp - 0x210]
lea ecx, [eax + 1]
mov byte [eax + esi], 0x80
cmp ecx, ebx
jae 0x4516f8
mov eax, ebx
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call fcn.005d1880
add esp, 0xc
lea edx, [ebx + 8]
lea eax, [edx + 1]
mov dword [ebp - 0x208], eax
cmp eax, 0x400
ja 0x451863
mov ecx, 0x6b3441
mov byte [0x6b3440], 4
sub edi, ecx
nop dword [eax]
mov al, byte [edi + ecx]
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x451720
push ecx
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x208]
add ecx, 0x6d8
call fcn.00451250
add esp, 0xc
cmp eax, 0x1000
jge 0x451863
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x204]
movups xmm0, xmmword [ebp - 0x14]
push ecx
push 0xa
movups xmmword [esi + ebx], xmm0
mov edi, dword [eax + 0x7bc]
lea ecx, [eax + 0x6e8]
mov edx, 0x10
add ebx, 0x10
call fcn.0045f610
add esp, 8
test eax, eax
je 0x4517b0
mov ecx, dword [ebp - 0x218]
mov eax, 0x1001
mov edx, dword [ebp - 0x21c]
pop edi
pop esi
mov dword [ecx], edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cf250
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xf]
lea ecx, [ebp - 0x14]
cmp ecx, eax
ja 0x4517bd
lea eax, [ebp - 5]
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x14], xmm0
cmp ebx, 0x10
jb 0x451842
mov edi, esi
lea eax, [ebp - 0x14]
sub edi, eax
lea ecx, [esi + 0xf]
xor eax, eax
lea edx, [ebp - 0x14]
cmp edx, ecx
ja 0x4517f5
lea ecx, [ebp - 5]
cmp ecx, esi
jb 0x4517f5
lea edx, [ebp - 0x14]
add edx, eax
inc eax
mov cl, byte [edx + edi]
xor byte [edx], cl
cmp eax, 0x10
jl 0x4517e3
jmp 0x451804
movups xmm1, xmmword [ebp - 0x14]
movups xmm0, xmmword [esi]
pxor xmm1, xmm0
movups xmmword [ebp - 0x14], xmm1
lea eax, [ebp - 0x204]
mov edx, esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0045fb30
add esp, 4
test eax, eax
jne 0x45178c
lea ecx, [ebp - 0x14]
lea eax, [esi + 0xf]
cmp ecx, eax
ja 0x45182d
lea eax, [ebp - 5]
movups xmm0, xmmword [esi]
sub ebx, 0x10
add esi, 0x10
add edi, 0x10
movups xmmword [ebp - 0x14], xmm0
cmp ebx, 0x10
jae 0x4517d0
mov ecx, dword [ebp - 0x218]
xor eax, eax
mov edx, dword [ebp - 0x21c]
pop edi
pop esi
mov dword [ecx], edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cf250
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x1001
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005cf250
mov esp, ebp
pop ebp
ret