Function at 0x46ad6c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], 0x60676665
mov eax, 0xff319399
mov ecx, 0x66
nop
nop
nop
movzx edx, byte [esp + eax + 0xce6c77]
mov esi, eax
or esi, edx
not edx
or edx, ecx
lea ebp, [edx + esi]
lea ebx, [edx + esi]
inc ebx
lea esi, [ebp*2 + 2]
mov ebp, esi
and ebp, 4
mov edx, ebx
xor edx, 2
add edx, ebp
and esi, 2
and ebx, 1
and edx, 0xfe
or edx, ebx
xor edx, 1
add edx, esi
mov byte [esp + eax + 0xce6c77], dl
inc eax
dec ecx
cmp eax, 0xff31939d
jne 0x46ad6e0
mov ebp, dword [esp + 0x10]
mov eax, dword [0x46b91f4]
test eax, eax
je 0x46ad78e
xor ecx, ecx
mov edx, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x3602324e
je 0x46ad760
inc ecx
cmp eax, ecx
jne 0x46ad750
jmp 0x46ad78e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebp
je 0x46ad78e
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x18
push eax
push dword [0x46b91fc]
call fcn.046a8f20
add esp, 0x24
mov ebp, eax
cmp ebp, 0xc0000023
jne 0x46ada24
mov dword [esp + 4], edi
push dword [esp + 0xc]
call fcn.046a5ff0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0x14], 0x60676665
mov edx, 0xff319399
mov ebx, 0x66
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edx + 0xce6c7b]
mov esi, edx
or esi, ecx
not ecx
or ecx, ebx
lea edi, [ecx + esi]
lea ebp, [ecx + esi]
inc ebp
lea esi, [edi*2 + 2]
mov edi, esi
and edi, 4
mov ecx, ebp
xor ecx, 2
add ecx, edi
and esi, 2
and ebp, 1
and ecx, 0xfe
or ecx, ebp
xor ecx, 1
add ecx, esi
mov byte [esp + edx + 0xce6c7b], cl
inc edx
dec ebx
cmp edx, 0xff31939d
jne 0x46ad7d0
mov ebp, dword [esp + 0x14]
mov ecx, dword [0x46b91f4]
test ecx, ecx
je 0x46ad850
xor edx, edx
mov esi, dword [0x46b91f8]
mov edi, dword [esp + 0x44]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x3602324e
je 0x46ad856
inc edx
cmp ecx, edx
jne 0x46ad840
jmp 0x46ad88c
mov edi, dword [esp + 0x44]
jmp 0x46ad88c
mov edx, dword [esi + edx*8 + 4]
cmp edx, ebp
mov esi, dword [esp]
je 0x46ad88f
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0xc]
push esi
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x18
push edx
push dword [0x46b91fc]
mov esi, eax
call fcn.046a8f20
add esp, 0x24
mov ebp, eax
mov eax, esi
mov esi, dword [esp]
test ebp, ebp
js 0x46ada1b
mov edx, dword [esp + 0x38]
test edx, edx
je 0x46ad9a1
cmp dword [esp + 0x34], 0
je 0x46ad99a
mov ecx, dword [esi + 0x10]
shr ecx, 1
mov ebx, dword [edx]
cmp ebx, ecx
jb 0x46ad8bb
mov ebx, ecx
test ebx, ebx
je 0x46ad991
add eax, 0x14
mov ecx, ebx
and ecx, 3
je 0x46ad917
mov dword [esp + 8], ebx
xor esi, esi
mov ebx, dword [esp + 0x34]
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, word [eax]
xor edx, edx
test di, di
setne dl
lea eax, [eax + edx*2]
mov word [ebx], di
add ebx, 2
inc esi
cmp ecx, esi
jne 0x46ad8e0
mov dword [esp + 4], ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
sub ecx, esi
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov esi, dword [esp]
cmp ebx, 4
jae 0x46ad91e
jmp 0x46ad991
mov ecx, ebx
cmp ebx, 4
jb 0x46ad991
mov edi, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
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 0x46ad930
mov dword [esp + 4], edi
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov esi, dword [esp]
mov eax, dword [esp + 4]
mov word [eax], 0
mov eax, dword [esi + 0x10]
shr eax, 1
mov dword [edx], eax
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x46ad9ae
mov eax, dword [esi + 4]
mov dword [ecx], eax
test edi, edi
je 0x46ada1b
cmp dword [esp + 0x40], 0
je 0x46ada16
mov edx, dword [edi]
mov eax, dword [esi + 0xc]
cmp edx, eax
jb 0x46ad9c4
mov edx, eax
mov eax, dword [esp]
mov esi, dword [eax + 8]
add esi, dword [esp]
mov ecx, edx
shr ecx, 2
mov dword [esp + 4], edx
and edx, 0xfffffffc
mov ebx, dword [esp + 0x40]
mov edi, ebx
add ebx, edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov eax, dword [esp + 4]
and eax, 3
mov ecx, eax
shr ecx, 1
mov esi, edx
mov edi, ebx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp]
test byte [esp + 4], 1
mov edi, dword [esp + 0x44]
je 0x46ada16
movzx ecx, byte [edx + eax - 1]
mov byte [ebx + eax - 1], cl
mov eax, dword [esi + 0xc]
mov dword [edi], eax
push esi
call fcn.046a6140
add esp, 4
mov eax, ebp
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret