Function at 0x446270
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4462ba
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 0x446290
sar ecx, 1
mov edx, ecx
and edx, 2
mov esi, ecx
or ecx, 2
imul ecx, edx
xor edx, 2
and esi, 0xfffd
imul esi, edx
add ecx, esi
jmp 0x4462bc
xor ecx, ecx
mov word [esp + 0x18], cx
mov edx, eax
test eax, eax
je 0x4462cc
add ecx, 2
mov edx, ecx
mov ebp, dword [esp + 0x40]
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp], 0x8c8d8a8b
mov word [esp + 4], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx]
mov esi, eax
and esi, 4
mov edi, ecx
xor edi, 0xbb888ee2
add edi, esi
xor edi, edx
add edi, 0x56553595
mov edx, edi
and edx, 1
xor edi, 1
lea edx, [edi + edx*2]
mov byte [esp + ecx], dl
inc ecx
add eax, 2
cmp ecx, 6
jne 0x4462f0
mov ebx, dword [esp]
mov eax, dword [0x451b44]
test eax, eax
je 0x44637f
xor ecx, ecx
mov edx, dword [0x451b48]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x446350
inc ecx
cmp eax, ecx
jne 0x446340
jmp 0x44637f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x44637f
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 6
push eax
push dword [0x451b4c]
call fcn.00441940
add esp, 0x24
mov ebx, eax
mov dword [esp], 0xd7969947
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov eax, 0xe6
mov ecx, 0x19
nop
nop
nop
nop
mov esi, ecx
and esi, 0x11
mov edx, eax
and edx, 0xae
or edx, esi
xor dl, byte [esp + eax - 0xe6]
xor dl, 0x51
add dl, 0x82
mov byte [esp + eax - 0xe6], dl
inc eax
dec ecx
cmp eax, 0xed
jne 0x4463a0
cmp ebx, dword [esp]
jne 0x44658f
mov esi, ebp
push dword [esp + 0x14]
call fcn.0043e0d0
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x696a6b62
mov edx, 0xe7
mov ebx, 0x18
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edx - 0xd7]
lea eax, [ecx + ecx]
not eax
add eax, ecx
mov ebp, edx
or ebp, ecx
not ecx
and ecx, eax
or ecx, ebx
and ecx, ebp
add cl, 0x7d
mov byte [esp + edx - 0xd7], cl
inc edx
dec ebx
cmp edx, 0xeb
jne 0x446410
mov edx, dword [esp + 0x10]
mov dword [esp], 0x8c8d8a8b
mov word [esp + 4], 0
xor ebx, ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + edi]
mov ecx, ebx
and ecx, 4
mov ebp, edi
xor ebp, 0xbb888ee2
add ebp, ecx
xor ebp, eax
add ebp, 0x56553595
mov eax, ebp
and eax, 1
xor ebp, 1
lea eax, [eax*2]
add eax, ebp
mov byte [esp + edi], al
inc edi
add ebx, 2
cmp edi, 6
jne 0x446460
mov ebx, dword [esp]
mov eax, dword [0x451b44]
test eax, eax
je 0x4464f4
xor ecx, ecx
mov ebp, dword [0x451b48]
nop
nop
nop
nop
cmp dword [ebp + ecx*8], 0xc0a4c970
je 0x4464c1
inc ecx
cmp eax, ecx
jne 0x4464b0
jmp 0x4464f4
mov ebp, dword [ebp + ecx*8 + 4]
cmp ebp, ebx
je 0x4464f4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push eax
push edx
push ecx
push dword [esp + 0x48]
push 6
push ebp
push dword [0x451b4c]
call fcn.00441940
add esp, 0x24
mov ebx, eax
test ebx, ebx
mov ecx, dword [esp + 0x44]
js 0x446583
mov ebp, esi
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x446513
mov eax, dword [esp + 8]
mov eax, dword [eax + 4]
mov dword [edx], eax
test ecx, ecx
je 0x446583
test ebp, ebp
je 0x44657a
mov eax, dword [ecx]
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 8]
cmp eax, ecx
jb 0x44652a
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 edx, eax
and edx, 3
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 ecx, dword [esp + 0x44]
je 0x44657a
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + edx - 1]
mov byte [esi + edx - 1], al
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov dword [ecx], eax
push dword [esp + 8]
call fcn.0043e170
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret