Function at 0x446880
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x38]
mov dword [esp + 0xc], 0xd0cfcecd
mov byte [esp + 0x10], 0
mov eax, 0x7d7b8a2d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x7d7b8a21]
xor ecx, eax
mov edx, ecx
and edx, 0xc12081c
mov esi, ecx
and esi, 2
mov ebp, esi
xor ebp, 2
imul ebp, edx
or edx, 2
imul edx, esi
mov ebx, ecx
xor ebx, 0x1e
add ebx, ebp
add ebx, edx
and ecx, 1
or ebx, 1
add ebx, ecx
mov byte [esp + eax - 0x7d7b8a21], bl
inc eax
cmp eax, 0x7d7b8a32
jne 0x4468b0
mov esi, dword [esp + 0xc]
mov eax, dword [0x451d6c]
test eax, eax
je 0x44694e
xor ecx, ecx
mov edx, dword [0x451d70]
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc59b8bcb
je 0x446920
inc ecx
cmp eax, ecx
jne 0x446910
jmp 0x44694e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x44694e
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 1
push dword [esp + 0x44]
push dword [esp + 0x44]
push 6
push dword [0x451d74]
push eax
call fcn.00442ab0
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x446bf3
push dword [esp + 0x18]
call fcn.0043f590
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], 0xd0cfcecd
mov byte [esp + 0x10], 0
mov edx, 0x7d7b8a2d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + edx - 0x7d7b8a21]
xor esi, edx
mov ebx, esi
and ebx, 0xc12081c
mov ecx, esi
and ecx, 2
mov ebp, ecx
xor ebp, 2
imul ebp, ebx
or ebx, 2
imul ebx, ecx
mov ecx, esi
xor ecx, 0x1e
add ecx, ebp
add ecx, ebx
and esi, 1
or ecx, 1
add ecx, esi
mov byte [esp + edx - 0x7d7b8a21], cl
inc edx
cmp edx, 0x7d7b8a32
jne 0x446990
mov esi, dword [esp + 0xc]
mov edx, dword [0x451d6c]
test edx, edx
je 0x446a13
mov dword [esp], esi
xor esi, esi
mov ecx, dword [0x451d70]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + esi*8], 0xc59b8bcb
je 0x446a1d
inc esi
cmp edx, esi
jne 0x446a00
mov esi, dword [esp]
jmp 0x446a55
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 8]
jmp 0x446a55
mov edx, dword [ecx + esi*8 + 4]
mov esi, dword [esp]
cmp edx, esi
je 0x446a55
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 8]
push ebx
push 1
push dword [esp + 0x44]
push dword [esp + 0x44]
push 6
push dword [0x451d74]
push edx
mov esi, eax
call fcn.00442ab0
add esp, 0x24
mov ecx, eax
mov eax, esi
mov esi, ecx
test esi, esi
js 0x446bea
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x446b49
test edi, edi
je 0x446b42
mov ebp, dword [ebx + 0x10]
shr ebp, 1
mov ecx, dword [edx]
cmp ecx, ebp
jb 0x446a7e
mov ecx, ebp
test ecx, ecx
mov ebp, dword [esp + 0x48]
je 0x446b3d
add eax, 0x14
mov dword [esp + 4], ecx
and ecx, 3
mov dword [esp], esi
je 0x446ad3
xor esi, esi
nop
nop
nop
nop
nop
movzx ebp, word [eax]
xor edx, edx
test bp, bp
setne dl
lea eax, [eax + edx*2]
mov word [edi], bp
add edi, 2
inc esi
cmp ecx, esi
jne 0x446aa0
mov ecx, dword [esp + 4]
sub ecx, esi
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp]
cmp dword [esp + 4], 4
jae 0x446ae0
jmp 0x446b3d
mov ecx, dword [esp + 4]
cmp dword [esp + 4], 4
jb 0x446b3d
nop
nop
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea esi, [eax + ebx*2]
mov word [edi], dx
movzx eax, word [eax + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [esi + edx*2]
mov word [edi + 2], ax
movzx eax, word [esi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea esi, [ebx + edx*2]
mov word [edi + 4], ax
movzx edx, word [ebx + edx*2]
xor eax, eax
test dx, dx
setne al
mov word [edi + 6], dx
add edi, 8
lea eax, [esi + eax*2]
add ecx, 0xfffffffc
jne 0x446ae0
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 8]
mov esi, dword [esp]
mov word [edi], 0
mov eax, dword [ebx + 0x10]
shr eax, 1
mov dword [edx], eax
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x446b56
mov eax, dword [ebx + 4]
mov dword [ecx], eax
test ebp, ebp
je 0x446bea
mov dword [esp], esi
cmp dword [esp + 0x44], 0
je 0x446be1
mov esi, dword [ebp]
mov eax, dword [ebx + 0xc]
cmp esi, eax
jb 0x446b74
mov esi, eax
mov eax, dword [ebx + 8]
add eax, ebx
mov ecx, esi
shr ecx, 2
mov edx, esi
and edx, 0xfffffffc
mov edi, dword [esp + 0x44]
add dword [esp + 0x14], edx
add edx, eax
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, esi
and eax, 3
mov ecx, eax
shr ecx, 1
mov ebx, edx
mov edi, dword [esp + 0x14]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x14]
mov ecx, eax
xor ecx, 0xfffffffe
or eax, 1
and eax, ecx
je 0x446be1
and esi, 2
movzx ecx, byte [edx + esi]
mov byte [edi + esi], cl
cmp eax, 1
je 0x446be1
movzx ecx, byte [edx + esi + 1]
mov byte [edi + esi + 1], cl
cmp eax, 2
je 0x446be1
movzx eax, byte [edx + esi + 2]
mov byte [edi + esi + 2], al
mov eax, dword [ebx + 0xc]
mov dword [ebp], eax
mov esi, dword [esp]
push ebx
call fcn.0043f640
add esp, 4
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret