Function at 0x4466d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
je 0x44671a
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4466f0
sar ecx, 1
mov edx, ecx
or edx, 2
mov esi, ecx
and esi, 2
imul edx, esi
xor esi, 2
and ecx, 0xfffd
imul ecx, esi
add ecx, edx
jmp 0x44671c
xor ecx, ecx
mov word [esp + 0x10], cx
mov edx, eax
test eax, eax
je 0x44672c
add ecx, 2
mov edx, ecx
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x30]
mov word [esp + 0x12], dx
mov dword [esp + 0x14], eax
mov dword [esp], 0xd0cfcecd
mov dword [esp + 4], 0
mov eax, 0xda70ddad
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x258f2253]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0x9f
mov byte [esp + eax + 0x258f2253], cl
inc eax
cmp eax, 0xda70ddb5
jne 0x446760
mov ebx, dword [esp]
mov eax, dword [0x4521f4]
test eax, eax
je 0x4467dc
xor ecx, ecx
mov edx, dword [0x4521f8]
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xbbe848dd
je 0x4467b0
inc ecx
cmp eax, ecx
jne 0x4467a0
jmp 0x4467dc
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x4467dc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push 0
push 0
push 2
push edx
push ebp
push 6
push dword [0x4521fc]
push eax
call fcn.00442500
add esp, 0x24
mov ebx, eax
mov dword [esp], 0x8fcec92f
mov word [esp + 4], 0
mov eax, 0x15f52e32
nop
movzx ecx, byte [esp + eax - 0x15f52e32]
xor ecx, eax
mov edx, ecx
and edx, 0x10340805
xor ecx, 0x92361905
lea ecx, [ecx + edx*2]
mov edx, ecx
xor edx, 0x16
and ecx, 0x69
add ecx, ecx
sub ecx, edx
add cl, 0x17
mov byte [esp + eax - 0x15f52e32], cl
inc eax
cmp eax, 0x15f52e38
jne 0x4467f0
cmp ebx, dword [esp]
jne 0x44697b
push dword [esp + 0xc]
call fcn.0043fa10
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xc]
mov dword [esp], 0xd0cfcecd
mov dword [esp + 4], 0
mov edx, 0xda70ddad
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + edx + 0x258f2253]
mov ebx, eax
and ebx, edx
add bl, bl
sub al, bl
movzx eax, al
add eax, edx
add al, 0x9f
mov byte [esp + edx + 0x258f2253], al
inc edx
cmp edx, 0xda70ddb5
jne 0x446860
mov ebx, dword [esp]
mov edx, dword [0x4521f4]
test edx, edx
je 0x4468e4
mov edi, esi
xor eax, eax
mov esi, dword [0x4521f8]
nop
nop
cmp dword [esi + eax*8], 0xbbe848dd
je 0x4468b2
inc eax
cmp edx, eax
jne 0x4468a0
mov esi, edi
jmp 0x4468e4
mov edx, dword [esi + eax*8 + 4]
cmp edx, ebx
mov esi, edi
je 0x4468e4
lea eax, [esp + 0xc]
lea esi, [esp + 0x10]
push eax
push ecx
mov eax, dword [esp + 0x10]
push eax
push 2
push esi
mov esi, edi
push ebp
push 6
push dword [0x4521fc]
push edx
call fcn.00442500
add esp, 0x24
mov ebx, eax
test ebx, ebx
js 0x44696f
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4468fd
mov eax, dword [esp + 8]
mov eax, dword [eax + 4]
mov dword [ecx], eax
test esi, esi
je 0x44696f
cmp dword [esp + 0x3c], 0
je 0x446966
mov eax, dword [esi]
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 8]
cmp eax, ecx
jb 0x446917
mov eax, ecx
mov esi, dword [esp + 8]
lea edx, [esi + 0xc]
mov ecx, eax
shr ecx, 2
mov ebp, dword [esp + 0x3c]
mov edi, ebp
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
and ecx, 0xfffffffc
add ebp, ecx
add esi, ecx
add esi, 0xc
mov edx, eax
and edx, 3
mov ecx, edx
shr ecx, 1
mov dword [esp + 0x18], esi
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test al, 1
mov esi, dword [esp + 0x40]
je 0x446966
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + edx - 1]
mov byte [ebp + edx - 1], al
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov dword [esi], eax
push dword [esp + 8]
call fcn.0043fae0
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret