Function at 0x446f90
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 0x446fda
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 0x446fb0
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 0x446fdc
xor ecx, ecx
mov word [esp + 0x14], cx
mov edx, eax
test eax, eax
je 0x446fec
add ecx, 2
mov edx, ecx
mov ebp, dword [esp + 0x3c]
mov word [esp + 0x16], dx
mov dword [esp + 0x18], eax
mov dword [esp], 0x707f7e7d
mov word [esp + 4], 0
mov eax, 0xea
mov ecx, 0x17478415
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx - 0x17478415]
lea edx, [eax - 0x17478500]
mov edi, eax
and edi, 0xcd
mov ebx, ecx
and ebx, 2
or ebx, edi
xor ebx, 0x22
or ebx, eax
and ebx, esi
and edx, 0xdfffffff
or edx, esi
xor edx, 0xdfffffff
or edx, ebx
mov esi, edx
and esi, 1
or edx, 1
add edx, esi
add dl, 0x96
mov byte [esp + ecx - 0x17478415], dl
dec eax
inc ecx
cmp eax, 0xe4
jne 0x447020
mov ebx, dword [esp]
mov eax, dword [0x4528cc]
test eax, eax
je 0x4470cf
xor ecx, ecx
mov edx, dword [0x4528d0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xbbe848dd
je 0x4470a0
inc ecx
cmp eax, ecx
jne 0x447090
jmp 0x4470cf
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x4470cf
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x44]
push 6
push dword [0x4528d4]
push eax
call fcn.004428e0
add esp, 0x24
mov ebx, eax
mov dword [esp], 0x33f2f193
mov byte [esp + 4], 0
xor eax, eax
nop
nop
nop
mov ecx, eax
add cl, 0xd4
xor cl, byte [esp + eax]
add cl, 0xdc
mov byte [esp + eax], cl
inc eax
cmp eax, 5
jne 0x4470e0
cmp ebx, dword [esp]
jne 0x447289
mov esi, ebp
push dword [esp + 0x10]
call fcn.0043fce0
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp], 0x707f7e7d
mov word [esp + 4], 0
mov edx, 0xea
mov edi, 0x17478415
nop
movzx eax, byte [esp + edi - 0x17478415]
lea ecx, [edx - 0x17478500]
mov ebp, edx
and ebp, 0xcd
mov ebx, edi
and ebx, 2
or ebx, ebp
xor ebx, 0x22
or ebx, edx
and ebx, eax
and ecx, 0xdfffffff
or ecx, eax
xor ecx, 0xdfffffff
or ecx, ebx
mov eax, ecx
and eax, 1
or ecx, 1
add ecx, eax
add cl, 0x96
mov byte [esp + edi - 0x17478415], cl
dec edx
inc edi
cmp edx, 0xe4
jne 0x447130
mov ebx, dword [esp]
mov eax, dword [0x4528cc]
test eax, eax
je 0x4471b0
xor ecx, ecx
mov edx, dword [0x4528d0]
mov edi, dword [esp + 0x40]
mov ebp, esi
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xbbe848dd
je 0x4471b8
inc ecx
cmp eax, ecx
jne 0x4471a0
jmp 0x4471ec
mov edi, dword [esp + 0x40]
mov ebp, esi
jmp 0x4471ec
mov ecx, dword [edx + ecx*8 + 4]
cmp ecx, ebx
je 0x4471ec
lea eax, [esp + 0x10]
lea edx, [esp + 0x14]
push eax
push dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push eax
push 2
push edx
push dword [esp + 0x44]
push 6
push dword [0x4528d4]
push ecx
call fcn.004428e0
add esp, 0x24
mov ebx, eax
test ebx, ebx
js 0x44727d
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x447205
mov eax, dword [esp + 8]
mov eax, dword [eax + 4]
mov dword [ecx], eax
test edi, edi
je 0x44727d
test ebp, ebp
je 0x447274
mov eax, dword [edi]
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 8]
cmp eax, ecx
jb 0x44721c
mov eax, ecx
mov esi, dword [esp + 8]
lea edx, [esi + 0xc]
mov ecx, eax
shr ecx, 2
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
lea edi, [esi + ecx]
add edi, 0xc
mov ecx, eax
xor ecx, 0xfffffffc
mov edx, eax
or edx, 3
and edx, ecx
mov ecx, edx
shr ecx, 1
mov esi, ebp
mov dword [esp + 0xc], edi
mov ebp, edi
mov edi, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test al, 1
mov edi, dword [esp + 0x40]
je 0x447274
and edx, 0xfffffffe
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + edx]
mov byte [esi + edx], al
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov dword [edi], eax
push dword [esp + 8]
call fcn.0043fd50
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret