Function at 0x46a65d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
cmp dword [ecx + 8], 0
je 0x46a6660
mov edx, dword [ecx]
test edx, edx
je 0x46a6660
mov dword [esp + 4], 0xb8bbba85
mov word [esp + 8], 0
mov esi, 7
mov ebx, 0x20
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, ebx
and edi, 0x39
mov eax, esi
and eax, 6
or eax, edi
xor al, byte [esp + esi - 3]
xor al, 0x39
add al, 0x65
mov byte [esp + esi - 3], al
inc esi
dec ebx
cmp esi, 0xd
jne 0x46a6610
mov eax, dword [esp + 4]
mov ebx, dword [0x46b91f4]
test ebx, ebx
je 0x46a66bd
xor edi, edi
mov esi, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edi*8], 0x2dedf0b8
je 0x46a669c
inc edi
cmp ebx, edi
jne 0x46a6650
jmp 0x46a66bd
mov dword [esp + 4], 0xe3222118
xor eax, eax
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 4]
lea esi, [eax + 0xb8]
mov ecx, eax
xor ecx, esi
xor ecx, 0x47
and ecx, edx
xor ecx, esi
add cl, 0x68
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 4
jne 0x46a6670
mov eax, dword [esp + 4]
jmp 0x46a684b
mov esi, dword [esi + edi*8 + 4]
cmp esi, eax
je 0x46a66bd
push dword [ebp + 8]
push edx
push 8
push esi
push dword [0x46b91fc]
mov esi, ecx
call fcn.046a8f20
mov ecx, esi
add esp, 0x14
mov edi, dword [ebp + 0xc]
cmp edi, 1
mov esi, dword [ebp + 0x10]
mov edx, esi
sbb edx, 0
jl 0x46a6795
cmp eax, 0xc000010a
jne 0x46a6795
mov edx, 0xffffd8f0
mov eax, edi
mul edx
sub edx, edi
imul esi, esi, 0xffffd8f0
add esi, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov edx, dword [ecx]
mov dword [esp + 4], 0xb8bbba85
mov word [esp + 8], 0
mov eax, 7
mov esi, 0x20
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, esi
and edi, 0x39
mov ebx, eax
and ebx, 6
or ebx, edi
xor bl, byte [esp + eax - 3]
xor bl, 0x39
add bl, 0x65
mov byte [esp + eax - 3], bl
inc eax
dec esi
cmp eax, 0xd
jne 0x46a6720
mov eax, dword [esp + 4]
mov esi, dword [0x46b91f4]
test esi, esi
je 0x46a6795
xor edi, edi
mov ebx, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x4e66b5a3
je 0x46a6770
inc edi
cmp esi, edi
jne 0x46a6760
jmp 0x46a6795
mov esi, dword [ebx + edi*8 + 4]
cmp esi, eax
je 0x46a6795
lea eax, [esp + 0x10]
push eax
push 0
push edx
push 0xc
push esi
push dword [0x46b91fc]
mov esi, ecx
call fcn.046a8f20
mov ecx, esi
add esp, 0x18
test eax, eax
js 0x46a684b
mov edx, dword [ecx]
test edx, edx
je 0x46a684b
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xb8bbba85
mov word [esp + 8], 0
mov esi, 0x20
mov edi, 7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, esi
and edx, 0x39
mov ebx, edi
and ebx, 6
or ebx, edx
xor bl, byte [esp + edi - 3]
xor bl, 0x39
add bl, 0x65
mov byte [esp + edi - 3], bl
dec esi
inc edi
cmp esi, 0x1a
jne 0x46a67d0
mov esi, dword [0x46b91f4]
test esi, esi
je 0x46a6845
mov edx, dword [esp + 4]
xor ebx, ebx
mov edi, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebx*8], 0xb62b8d10
je 0x46a6820
inc ebx
cmp esi, ebx
jne 0x46a6810
jmp 0x46a6845
mov esi, dword [edi + ebx*8 + 4]
cmp esi, edx
je 0x46a6845
push dword [esp + 0xc]
push 4
push esi
push dword [0x46b91fc]
mov esi, ecx
mov edi, eax
call fcn.046a8f20
mov eax, edi
mov ecx, esi
add esp, 0x10
mov dword [ecx], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc