Function at 0x46a6cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x100000
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0xb8bbba85
mov word [esp + 8], 0
mov eax, 7
mov ecx, 0x20
nop
nop
nop
nop
nop
nop
nop
mov esi, ecx
and esi, 0x39
mov edx, eax
and edx, 6
or edx, esi
xor dl, byte [esp + eax - 3]
xor dl, 0x39
add dl, 0x65
mov byte [esp + eax - 3], dl
inc eax
dec ecx
cmp eax, 0xd
jne 0x46a6d50
mov eax, dword [esp + 4]
mov ecx, dword [0x46b91f4]
test ecx, ecx
je 0x46a6dce
xor edx, edx
mov esi, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x3e416e49
je 0x46a6da0
inc edx
cmp ecx, edx
jne 0x46a6d90
jmp 0x46a6dce
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x46a6dce
lea eax, [esp + 0x34]
lea edx, [esp + 0x14]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x46b91fc]
call fcn.046a8f20
add esp, 0x24
test eax, eax
js 0x46a747a
mov eax, dword [edi + 4]
test eax, eax
jne 0x46a6e56
push 0xbbf966b4
push dword [0x46b91e8]
call fcn.046abc60
add esp, 8
test eax, eax
je 0x46a6e1e
mov ecx, dword [edi]
test ecx, ecx
je 0x46a6e53
mov dword [esp + 4], 0
lea edx, [esp + 4]
push edx
push ecx
call eax
test eax, eax
je 0x46a6e2f
cmp dword [esp + 4], 0
je 0x46a6e2f
mov dword [edi + 4], 3
jmp 0x46a6e53
mov dword [edi + 4], 1
mov dword [esp + 0x28], 0
jmp 0x46a6e75
lea eax, [esp + 0x48]
push eax
call fcn.046ac4d0
add esp, 4
test al, al
je 0x46a6e53
mov eax, dword [esp + 0x48]
mov ecx, 2
cmp eax, 3
je 0x46a6e50
mov ecx, eax
mov dword [edi + 4], ecx
mov eax, dword [edi + 4]
mov dword [esp + 0x28], 0x7fff
cmp eax, 2
je 0x46a6e6b
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0xfffeffff
je 0x46a6e7d
mov dword [esp + 0x24], SysStringLen
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 4], 0xf3f3f1f0
mov byte [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
mov ecx, eax
add cl, 0x54
xor cl, byte [esp + eax + 4]
add cl, 0x5c
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 5
jne 0x46a6ec0
mov edx, dword [esp + 4]
mov eax, edx
sar eax, 0x1f
cmp edx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
sbb eax, dword [esp + 0x28]
jae 0x46a73dc
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], edi
jmp 0x46a6f52
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x40]
add edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
adc eax, dword [esp + 0x4c]
cmp edx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
sbb eax, dword [esp + 0x28]
jae 0x46a73dc
mov dword [esp + 0x2c], edx
mov ecx, edi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x40]
push edx
call fcn.046a6860
mov edx, dword [esp + 0x2c]
cmp eax, 0xbfffffff
ja 0x46a73dc
test eax, eax
js 0x46a6f30
cmp dword [esp + 0x60], 0x1000
jne 0x46a6f30
test byte [esp + 0x5c], 0x66
je 0x46a6f30
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x34], esi
mov ebx, dword [esp + 0x44]
mov eax, 0
sbb eax, ebx
jae 0x46a710e
mov dword [esp + 4], 0xb8bbba85
mov word [esp + 8], 0
mov eax, 7
mov ecx, 0x20
nop
nop
nop
nop
mov edi, ecx
and edi, 0x39
mov edx, eax
and edx, 6
or edx, edi
xor dl, byte [esp + eax - 3]
xor dl, 0x39
add dl, 0x65
mov byte [esp + eax - 3], dl
inc eax
dec ecx
cmp eax, 0xd
jne 0x46a6fd0
mov eax, dword [0x46b91f4]
test eax, eax
je 0x46a704a
mov ecx, dword [esp + 4]
xor edx, edx
mov edi, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x16194952
je 0x46a7020
inc edx
cmp eax, edx
jne 0x46a7010
jmp 0x46a704a
mov eax, dword [edi + edx*8 + 4]
cmp eax, ecx
je 0x46a704a
push 0x8000
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x46b91fc]
call fcn.046a8f20
add esp, 0x1c
mov dword [esp + 0x3c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x34], esi
mov dword [esp + 4], 0xb8bbba85
mov word [esp + 8], 0
mov eax, 7
mov ecx, 0x20
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, ecx
and edi, 0x39
mov edx, eax
and edx, 6
or edx, edi
xor dl, byte [esp + eax - 3]
xor dl, 0x39
add dl, 0x65
mov byte [esp + eax - 3], dl
inc eax
dec ecx
cmp eax, 0xd
jne 0x46a7080
mov eax, dword [esp + 4]
mov ecx, dword [0x46b91f4]
test ecx, ecx
je 0x46a70fe
xor edx, edx
mov edi, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x3e416e49
je 0x46a70d0
inc edx
cmp ecx, edx
jne 0x46a70c0
jmp 0x46a70fe
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x46a70fe
push 4
push 0x3000
lea eax, [esp + 0x3c]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x46b91fc]
call fcn.046a8f20
add esp, 0x24
test eax, eax
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
js 0x46a73dc
mov ecx, edi
lea eax, [esp + 0x70]
push eax
push ebx
push esi
push dword [esp + 0x20]
push dword [esp + 0x40]
push edx
call fcn.046a6b80
test eax, eax
jns 0x46a7134
cmp eax, 0x8000000d
jne 0x46a6f30
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jb 0x46a6f30
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
call fcn.046a7490
add esp, 0x18
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
cmp esi, eax
mov ebx, dword [esp + 0x10]
je 0x46a6f0f
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
jmp 0x46a71da
push dword [esp + 0x10]
call fcn.046782e0
add esp, 4
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
lea eax, [ecx + eax*8]
mov dword [esp + 0x20], eax
mov edx, ecx
mov ebx, ecx
mov ecx, dword [esp + 0x1c]
add edx, ecx
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x6c]
mov dword [ebx + ecx], edi
mov edi, ecx
mov ecx, dword [esp + 0x68]
mov dword [ebx + edi + 4], ecx
add edx, 8
add esi, 4
cmp esi, dword [esp + 0x58]
je 0x46a7383
mov edi, dword [esi]
sub edi, dword [esp + 0x14]
mov ecx, edi
sar ecx, 0x1f
add edi, eax
mov dword [esp + 0x6c], edi
adc ecx, dword [esp + 0x30]
mov dword [esp + 0x68], ecx
mov ecx, edx
sub ecx, ebx
cmp edx, dword [esp + 0x20]
jne 0x46a71b9
mov eax, edx
not eax
and eax, ebx
mov edi, ecx
mov ecx, ebx
not ecx
mov dword [esp + 0x18], edx
and ecx, edx
sub ecx, eax
sar ecx, 3
mov edx, ecx
shr edx, 1
add edx, ecx
mov dword [esp + 0x1c], edi
mov eax, edi
sar eax, 3
inc eax
cmp edx, eax
ja 0x46a722a
mov edx, eax
mov dword [esp + 0x20], edx
lea eax, [edx*8]
push eax
call fcn.046782d0
add esp, 4
mov ecx, eax
test ebx, ebx
je 0x46a71a0
mov edx, dword [esp + 0x1c]
lea eax, [edx - 0x2fdcbcda]
mov dword [esp + 0x50], eax
cmp ecx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
jbe 0x46a7332
cmp eax, ecx
jbe 0x46a7332
test edx, edx
je 0x46a7190
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
lea eax, [ebx + edx]
add eax, 0x2fdcbcd9
mov ecx, dword [esp + 0x54]
add ecx, edx
add ecx, 0x2fdcbcd9
mov edx, dword [esp + 0x1c]
mov edi, edx
and edi, 7
je 0x46a72c8
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x46a72b0
add eax, edx
add ecx, edx
add edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov edi, ebx
sub edi, dword [esp + 0x18]
cmp edi, 0xfffffff8
ja 0x46a7190
neg edx
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x46a72e0
jmp 0x46a7190
mov eax, edx
mov edx, ecx
mov ecx, eax
shr ecx, 2
mov eax, ebx
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edi, dword [esp + 0x1c]
mov eax, edi
and eax, 0xfffffffc
lea ecx, [edx + eax]
add eax, ebx
mov ebx, ecx
mov ecx, edi
shr ecx, 1
and ecx, 1
mov edx, eax
mov edi, ebx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
test byte [esp + 0x50], 1
je 0x46a7190
mov ecx, dword [esp + 0x1c]
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [ebx + ecx], al
jmp 0x46a7190
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [eax], ebx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x46a73cb
mov dword [esp + 0x18], edx
cmp eax, dword [esp + 0x58]
mov edi, dword [esp + 0x38]
je 0x46a73c2
mov dword [esp + 0x10], ebx
push eax
call fcn.046782e0
add esp, 4
mov dword [esp + 4], 0
jmp 0x46a6f30
mov dword [esp + 0x10], ebx
jmp 0x46a6f30
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ebx
mov edi, dword [esp + 0x38]
jmp 0x46a6f30
mov dword [esp + 4], 0xb8bbba85
mov word [esp + 8], 0
mov eax, 7
mov ecx, 0x20
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, ecx
and esi, 0x39
mov edx, eax
and edx, 6
or edx, esi
xor dl, byte [esp + eax - 3]
xor dl, 0x39
add dl, 0x65
mov byte [esp + eax - 3], dl
inc eax
dec ecx
cmp eax, 0xd
jne 0x46a7400
mov eax, dword [0x46b91f4]
test eax, eax
je 0x46a747a
mov ecx, dword [esp + 4]
xor edx, edx
mov esi, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x16194952
je 0x46a7450
inc edx
cmp eax, edx
jne 0x46a7440
jmp 0x46a747a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x46a747a
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x14]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x46b91fc]
call fcn.046a8f20
add esp, 0x1c
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10