Function at 0x446920
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x30]
test eax, eax
je 0x44696a
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 0x446940
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 0x44696c
xor ecx, ecx
mov word [esp + 0xc], cx
mov edx, eax
test eax, eax
je 0x44697c
add ecx, 2
mov edx, ecx
mov word [esp + 0xe], dx
mov dword [esp + 0x10], eax
mov dword [esp], 0x4c4d4a4b
mov word [esp + 4], 0
mov eax, 0x72
mov ecx, 0x8d
nop
nop
nop
movzx edi, byte [esp + eax - 0x72]
mov edx, eax
xor edx, ecx
and edx, edi
xor edx, ecx
mov bl, 0xc5
sub bl, dl
mov byte [esp + eax - 0x72], bl
inc eax
dec ecx
cmp eax, 0x78
jne 0x4469a0
mov ebx, dword [esp]
mov eax, dword [0x451ae0]
test eax, eax
je 0x446a0f
xor ecx, ecx
mov edx, dword [0x451ae4]
cmp dword [edx + ecx*8], 0xbbe848dd
je 0x4469e0
inc ecx
cmp eax, ecx
jne 0x4469d0
jmp 0x446a0f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x446a0f
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x40]
push 6
push dword [0x451ae8]
push eax
call fcn.004425f0
add esp, 0x24
mov ebx, eax
mov dword [esp], 0xa3e2e1c3
mov dword [esp + 4], 0
xor eax, eax
mov ecx, eax
add cl, 0xa8
xor cl, byte [esp + eax]
add cl, 0xb8
mov byte [esp + eax], cl
inc eax
cmp eax, 8
jne 0x446a20
cmp ebx, dword [esp]
jne 0x446b77
push dword [esp + 8]
call fcn.0043fa10
add esp, 4
mov esi, dword [esp + 8]
mov dword [esp], 0x4c4d4a4b
mov word [esp + 4], 0
mov edi, 0x72
mov ebx, 0x8d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + edi - 0x72]
mov edx, edi
xor edx, ebx
and edx, ebp
xor edx, ebx
mov cl, 0xc5
sub cl, dl
mov byte [esp + edi - 0x72], cl
inc edi
dec ebx
cmp edi, 0x78
jne 0x446a70
mov ebx, dword [esp]
mov edx, dword [0x451ae0]
test edx, edx
je 0x446af1
xor ebp, ebp
mov edi, dword [0x451ae4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0xbbe848dd
je 0x446ac0
inc ebp
cmp edx, ebp
jne 0x446ab0
jmp 0x446af1
mov edx, dword [edi + ebp*8 + 4]
cmp edx, ebx
je 0x446af1
lea ecx, [esp + 8]
lea edi, [esp + 0xc]
push ecx
push esi
push eax
push 2
push edi
push dword [esp + 0x40]
push 6
push dword [0x451ae8]
push edx
mov edi, eax
call fcn.004425f0
add esp, 0x24
mov ebx, eax
mov eax, edi
test ebx, ebx
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
js 0x446b6e
test edx, edx
je 0x446b06
mov ecx, dword [eax + 4]
mov dword [edx], ecx
test esi, esi
je 0x446b6e
cmp dword [esp + 0x38], 0
je 0x446b69
mov edx, dword [esi]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x446b1c
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov ebp, dword [esp + 0x38]
mov edi, ebp
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add ebp, ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 0x14], esi
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test dl, 1
mov esi, dword [esp + 0x3c]
je 0x446b69
and edx, 2
mov ecx, dword [esp + 0x14]
movzx ecx, byte [ecx + edx]
mov byte [ebp + edx], cl
mov ecx, dword [eax + 8]
mov dword [esi], ecx
push eax
call fcn.0043fad0
add esp, 4
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret