Function at 0x46ad030
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp], 0x60676665
mov eax, 0xff319399
mov ecx, 0x66
movzx edx, byte [esp + eax + 0xce6c67]
mov esi, eax
or esi, edx
not edx
or edx, ecx
lea ebp, [edx + esi]
lea edi, [edx + esi]
inc edi
lea esi, [ebp*2 + 2]
mov ebp, esi
and ebp, 4
mov edx, edi
xor edx, 2
add edx, ebp
and esi, 2
and edi, 1
and edx, 0xfe
or edx, edi
xor edx, 1
add edx, esi
mov byte [esp + eax + 0xce6c67], dl
inc eax
dec ecx
cmp eax, 0xff31939d
jne 0x46ad050
mov esi, dword [esp]
mov eax, dword [0x46b91f4]
test eax, eax
je 0x46ad0fe
xor ecx, ecx
mov edx, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x33079ccd
je 0x46ad0d0
inc ecx
cmp eax, ecx
jne 0x46ad0c0
jmp 0x46ad0fe
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x46ad0fe
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x18
push eax
push dword [0x46b91fc]
call fcn.046a8f20
add esp, 0x24
mov esi, eax
mov dword [esp], 0x97d6c927
mov dword [esp + 4], 0
xor eax, eax
nop
movzx ecx, byte [esp + eax]
lea edx, [eax + 0x4004caae]
and edx, ecx
add edx, edx
neg edx
add edx, eax
add edx, 0x4004caae
add dl, cl
add dl, 0x9a
mov byte [esp + eax], dl
mov ecx, eax
xor ecx, 0x7ffffffe
mov edx, eax
or edx, 1
and edx, ecx
xor eax, 0x2f4cf0c1
lea eax, [eax + edx*2]
add eax, 0xd0b30f40
cmp eax, 8
jb 0x46ad110
cmp esi, dword [esp]
jne 0x46ad367
push dword [esp + 0x14]
call fcn.046a5ff0
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp], 0x60676665
mov edx, 0xff319399
mov ebx, 0x66
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edx + 0xce6c67]
mov edi, edx
or edi, ecx
not ecx
or ecx, ebx
lea ebp, [ecx + edi]
add edi, ecx
inc edi
lea esi, [ebp*2 + 2]
mov ebp, esi
and ebp, 4
mov ecx, edi
xor ecx, 2
add ecx, ebp
and esi, 2
and edi, 1
and ecx, 0xfe
or ecx, edi
xor ecx, 1
add ecx, esi
mov byte [esp + edx + 0xce6c67], cl
inc edx
dec ebx
cmp edx, 0xff31939d
jne 0x46ad190
mov esi, dword [esp]
mov ecx, dword [0x46b91f4]
test ecx, ecx
je 0x46ad210
xor edx, edx
mov edi, dword [0x46b91f8]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x33079ccd
je 0x46ad21a
inc edx
cmp ecx, edx
jne 0x46ad200
jmp 0x46ad250
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
jmp 0x46ad250
mov edx, dword [edi + edx*8 + 4]
cmp edx, esi
je 0x46ad250
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x10]
push 0
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x18
push edx
push dword [0x46b91fc]
mov edi, eax
call fcn.046a8f20
add esp, 0x24
mov esi, eax
mov eax, edi
test ebx, ebx
mov edx, dword [esp + 8]
je 0x46ad35e
test esi, esi
js 0x46ad35e
test ebp, ebp
je 0x46ad357
mov ecx, dword [edx + 0xc]
shr ecx, 1
mov edi, dword [ebx]
cmp edi, ecx
jb 0x46ad279
mov edi, ecx
test edi, edi
je 0x46ad34e
add eax, 0x10
mov ecx, edi
and ecx, 3
je 0x46ad2d7
mov dword [esp + 0x10], edi
xor edi, edi
mov ebp, dword [esp + 0x34]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, word [eax]
xor edx, edx
test bx, bx
setne dl
lea eax, [eax + edx*2]
mov word [ebp], bx
add ebp, 2
inc edi
cmp ecx, edi
jne 0x46ad2a0
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x10]
mov ebp, ecx
sub ebp, edi
mov edi, ecx
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 8]
cmp edi, 4
jae 0x46ad2de
jmp 0x46ad34e
mov ebp, edi
cmp edi, 4
jb 0x46ad34e
mov ebx, dword [esp + 0xc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [eax]
xor ecx, ecx
test dx, dx
setne cl
lea edi, [eax + ecx*2]
mov word [ebx], dx
movzx eax, word [eax + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edx, [edi + ecx*2]
mov word [ebx + 2], ax
movzx eax, word [edi + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edi, [edx + ecx*2]
mov word [ebx + 4], ax
movzx ecx, word [edx + ecx*2]
xor eax, eax
test cx, cx
setne al
mov word [ebx + 6], cx
add ebx, 8
lea eax, [edi + eax*2]
add ebp, 0xfffffffc
jne 0x46ad2f0
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov word [eax], 0
mov eax, dword [edx + 0xc]
shr eax, 1
mov dword [ebx], eax
push edx
call fcn.046a6140
add esp, 4
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret