Function at 0x46aae978
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx]
lea edx, [eax + 1]
jmp 0x46aaeae2
mov eax, dword [edi + 4]
mov ecx, edx
sar ecx, 3
mov dword [ebp - 0x18], ecx
add ecx, eax
and edx, 7
mov dword [ebp + 0xc], ecx
push 7
pop ecx
sub ecx, edx
mov edx, dword [ebp + 0xc]
mov dl, byte [edx + ebx + 0xc]
sar dl, cl
mov dword [ebp + 8], ecx
test dl, 1
je 0x46aaeade
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + esi + 0xc]
mov cl, byte [ebp + 8]
sar dl, cl
test dl, 1
je 0x46aaeade
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + ebx + 0xc]
mov byte [ebp + 0xf], dl
mov dl, byte [ecx + esi + 0xc]
xor dl, byte [ebp + 0xf]
mov cl, byte [ebp + 8]
sar dl, cl
test dl, 1
je 0x46aaeade
movsx edx, byte [ebp + 0xf]
push dword [0x17324]
sar edx, cl
lea eax, [eax + eax*2 + 0xf]
push eax
push 0
and edx, 1
mov dword [ebp - 0x10], edx
call dword [0x17290]
test eax, eax
mov dword [ebp - 4], eax
je 0x46aaec76
mov ecx, dword [ebp + 0x10]
and dword [ebp + 0xc], 0
mov dword [ecx], eax
cmp dword [edi + 4], 0
jle 0x46aaea92
mov dword [ebp - 8], esi
sub dword [ebp - 8], ebx
lea ecx, [ebx + 0xc]
mov dword [ebp - 0xc], eax
sub dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 8]
mov al, byte [eax + ecx]
or al, byte [ecx]
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], al
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 0xc]
add eax, ecx
mov dl, byte [eax + esi + 0xc]
or dl, byte [eax + ebx + 0xc]
mov ecx, dword [ebp - 4]
mov byte [eax + ecx + 0xc], dl
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 4]
lea eax, [edx + eax*2 + 0xc]
mov dl, byte [eax + esi]
and dl, byte [eax + ebx]
inc dword [ebp + 0xc]
mov byte [eax + ecx], dl
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
inc ecx
cmp eax, dword [edi + 4]
mov dword [ebp - 0x14], ecx
jl 0x46aaea45
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [eax], ecx
push 2
pop ecx
sub ecx, dword [ebp - 0x10]
mov dword [eax + ecx*4], esi
mov ecx, dword [edi + 4]
lea ecx, [edx + ecx*2 + 0xc]
mov dl, byte [ecx + esi]
mov cl, byte [ebp + 8]
sar dl, cl
test dl, 1
jne 0x46aaec5b
push dword [ebp + 0x14]
push esi
push edi
call fcn.46aae79a
test eax, eax
je 0x46aaec66
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
lea ecx, [ecx + edx*4 + 4]
mov dword [ecx], eax
mov esi, dword [ecx]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x14]
inc edx
cmp edx, dword [esi]
mov dword [ebp + 0x14], edx
jl 0x46aae999
mov eax, dword [esi]
cmp eax, dword [edi]
jge 0x46aaeba8
and dword [ebp + 0xc], 0
cmp dword [edi + 4], 0
jle 0x46aaeb4e
mov dword [ebp + 0x14], ebx
sub dword [ebp + 0x14], esi
lea eax, [esi + 0xc]
mov ecx, dword [ebp + 0x14]
mov cl, byte [ecx + eax]
or byte [eax], cl
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 0xc]
add ecx, edx
lea edx, [ecx + esi + 0xc]
mov dword [ebp + 0x10], edx
mov dl, byte [ecx + ebx + 0xc]
mov ecx, dword [ebp + 0x10]
or byte [ecx], dl
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
lea ecx, [edx + ecx*2 + 0xc]
lea edx, [ecx + esi]
mov dword [ebp + 0x10], edx
mov dl, byte [ecx + ebx]
mov ecx, dword [ebp + 0x10]
and byte [ecx], dl
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
inc eax
cmp ecx, dword [edi + 4]
jl 0x46aaeb0a
mov eax, dword [esi]
mov dl, al
and dl, 7
mov cl, 7
sub cl, dl
mov edx, eax
sar edx, 3
add edx, dword [edi + 4]
mov dl, byte [edx + ebx + 0xc]
sar dl, cl
test dl, 1
jne 0x46aaeb80
push eax
lea eax, [esi + 8]
push eax
push ebx
push edi
call fcn.46aae978
test eax, eax
jne 0x46aaec7b
mov eax, dword [esi]
xor ecx, ecx
mov dl, al
and dl, 7
mov cl, 7
sub cl, dl
mov edx, eax
sar edx, 3
movsx edx, byte [edx + ebx + 0xc]
sar edx, cl
and edx, 1
lea ecx, [esi + edx*4 + 4]
mov dword [ebp + 0x10], ecx
jmp 0x46aae98c
cmp esi, ebx
je 0x46aaec62
mov eax, dword [edi + 4]
test eax, eax
mov byte [ebp + 0xb], 0
mov byte [ebp + 0xf], 0
jle 0x46aaec54
mov ecx, eax
lea ecx, [ecx + esi + 0xc]
mov dword [ebp + 0x14], ebx
sub dword [ebp + 0x14], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov dl, byte [ecx]
mov eax, dword [ebp + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0x18]
not dl
or byte [ebx - 0x2d0917b3], cl
and dl, al
or byte [ebp + 0xb], dl
not al
and al, byte [ecx]
or byte [ebp + 0xf], al
inc ecx
dec dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
jne 0x46aaebd5
cmp byte [ebp + 0xb], 0
jne 0x46aaec28
cmp byte [ebp + 0xf], 0xb
mov cs, word [ebx + ebp*2 + 0x572b5b52]
cwde
pop ebx
fmul qword ss:[esi + 0x104bfd5]
test edx, esi
xchg esi, eax
pop ss
pop eax
popfd
mov word [edx], cs
dec edx
mov bh, 0x4a
inc ebp
mov eax, 0x1a1812a5
or dl, byte [eax - 0x126964cb]
wait
xchg esi, eax
in eax, dx
push es
not dword [eax]
mov dl, 0xd1
or dl, dl
insd dword es:[edi], dx
pop eax
sub eax, 0xc2acc86c
shr byte [eax + 0x2654c1d6], 1
xor al, 0xe4
jle 0x46aaebdc
xchg ebp, eax
mov al, byte [0x52e04326]
xor dl, cl
add byte [edx], bh
pushal
pop esp
xchg edi, eax
sub dword [ebx + ecx - 0x449f279a], esi
mov cl, 0x6f
dec esi
wait
pushal
mov ebx, 0x9b4e6fb1
mov cl, byte [esi - 0x12]
dec esi
out dx, al
push ss
xchg dword [ebx + 0x7e94fc7f], edx
ret 0x1f4a
xchg esp, eax
jle 0x46aaec27
dec edx
pop ds
mov byte [0x401ec4ef], al
pop eax
inc eax
push edi
ret
scasd eax, dword es:[edi]
daa
out dx, al
adc ebp, dword [edx - 0x4c82bd27]
dec esp
fld dword [edx + 0x7d]
mov bl, 0x4c
scasb al, byte es:[edi]
fcomi st(7)
add dword [ebx + ebp - 0x1f], edi
mov eax, dword [esi]
invalid